Change ScrollView -Parent - Is this possible?

Amalkotey

Active Member
Licensed User
Longtime User
there is a possibility, the parent in a scrolling view change? I need as a parent is not the activity but a TabHost.

Thank you for your help in advance.

best regards
Amalkotey
 
You can change the parent of any view by calling ScrollView.RemoveView and then add the view to its new parent by calling Panel.AddView(ScrollView...).

@Erel: Thanks for your help
 
Upvote 0
The ScrollView's Parent will be whatever container you add it to:

Code: Copy
MyTabHost.AddTab2("My ScrollView", MyScrollView)

The Parent of MyScrollView is now MyTabHost.

Martin.
 
Upvote 0
The ScrollView's Parent will be whatever container you add it to:

Code: Copy
MyTabHost.AddTab2("My ScrollView", MyScrollView)

The Parent of MyScrollView is now MyTabHost.

@Martin:
Exactly, but that has not worked. I need a rider on both a listview and a scrollview. The decision, which will in time control is selected in the settings of the application. But thank you anyway.
 
Upvote 0
Back
Top