vfafou Well-Known Member Licensed User Longtime User Jun 11, 2017 #1 Hello! I'm facing the following problem: I have a TabHost with 3 tab pages. Each tab page loads a layout with one CustomListview object. Each CustomListview item is a panel with labels filled from web service json data and with a button. The button is used to load something relevant to the current item of the listview. My problem is that when I press a button on an item of the 1st tabpage CustomListview, the TabHost jumps to the 3rd tab page! Could somebody help me? Thank you in advance!
Hello! I'm facing the following problem: I have a TabHost with 3 tab pages. Each tab page loads a layout with one CustomListview object. Each CustomListview item is a panel with labels filled from web service json data and with a button. The button is used to load something relevant to the current item of the listview. My problem is that when I press a button on an item of the 1st tabpage CustomListview, the TabHost jumps to the 3rd tab page! Could somebody help me? Thank you in advance!
Erel B4X founder Staff member Licensed User Longtime User Jun 12, 2017 #2 Generally speaking, in most cases it is better to use TabStripViewPager instead of TabHost. You need to search your code and see where TabHost.CurrentTab property is set. Upvote 0
Generally speaking, in most cases it is better to use TabStripViewPager instead of TabHost. You need to search your code and see where TabHost.CurrentTab property is set.
vfafou Well-Known Member Licensed User Longtime User Jun 12, 2017 #3 Hello Erel! Thank you for your response! I've already turned to TabStrip a few hours after my post! I think TabStrip is the best option for tab container in B4A... Upvote 0
Hello Erel! Thank you for your response! I've already turned to TabStrip a few hours after my post! I think TabStrip is the best option for tab container in B4A...