K kjmprkrhpdmv New Member Licensed User Longtime User Feb 10, 2014 #1 I want to use a tabhost with scrollviews on each tab and designer layouts for the tab panels. Attached is a project modified from the TabHostScrollView example and a screenshot. I cant find a way to set the scrollview size to fit the available tab area. As you can see the scrollview is on top of the tabs. I have searched many posts. The only related suggestion I could find was to use this in desgner script: ScvTest1.SetTopAndBottom(0, 100%y) Obviously this doesnt work. Thanks in advance for any help. Attachments TabHostSVPanels.zip TabHostSVPanels.zip 339.6 KB · Views: 291 tab1.jpg 69.7 KB · Views: 464
I want to use a tabhost with scrollviews on each tab and designer layouts for the tab panels. Attached is a project modified from the TabHostScrollView example and a screenshot. I cant find a way to set the scrollview size to fit the available tab area. As you can see the scrollview is on top of the tabs. I have searched many posts. The only related suggestion I could find was to use this in desgner script: ScvTest1.SetTopAndBottom(0, 100%y) Obviously this doesnt work. Thanks in advance for any help.
Erel B4X founder Staff member Licensed User Longtime User Feb 11, 2014 #2 You should create the tabs with TabHost.AddTab (not 2). This will load the layout file and will allow you to set the inner views positions with anchors or designer script. Upvote 0
You should create the tabs with TabHost.AddTab (not 2). This will load the layout file and will allow you to set the inner views positions with anchors or designer script.