to clarify: I need the index of the view of one of the scrollviews (menu1, menu2 or menu3).
I want to use: Activity.RemoveViewAt(x) = where x= the menu1 view index
You show only one SrollView at any time.
Couldnt'you use only one Scrollview ?
When you need to change the content, remove all views from SrollView.Panel and add the new ones.
From my point of view it would be more efficient and minimize the need of memory.
that is exactly what I am trying to accomplish.
Is there any sample code on the best way to do this?
Right now I am loading many scrollviews and just making them visible or not and it is causing lots of memory problems.
Not that I know.
You say you are loading many Scollviews.
This means that you have routines to fill them.
So depending on what you want to display you should remove all views from ScrollView.Panel and add the new ones.
I fixed it, I now only load the scrollview layout when it is needed, otherwise I remove all views from them.
It makes the different scrollviews take about 1/2 a second to load, but a smal price to pay for actually having it work.