Amalkotey Active Member Licensed User Longtime User Aug 29, 2011 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Aug 29, 2011 #2 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...). Upvote 0
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...).
Amalkotey Active Member Licensed User Longtime User Aug 29, 2011 #3 Erel said: 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...). Click to expand... @Erel: Thanks for your help Upvote 0
Erel said: 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...). Click to expand... @Erel: Thanks for your help
warwound Expert Licensed User Longtime User Aug 29, 2011 #4 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.
Amalkotey Active Member Licensed User Longtime User Aug 29, 2011 #5 warwound said: 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. Click to expand... @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
warwound said: 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. Click to expand... @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.