how to change the Tab focus in tabhost? -
I'm new to Android.
I am implementing coding related to tab host.
I have created three tabs called Tab 1, Tab 2, Tab 3 in the tabb host.
When I start my application, tab 1 is automatically removed.
My intention is when I
if any idea please help me
Thank you in advance
Not sure I understand your question a lot. If you want to set the active tab to tab # 2, then do the following.
TabHost tabHost = getTabHost (); TabHost.setCurrentTab (1); TabHost.setCurrentTab sets an active tab by index 1. Tab 1 has index 0, Index 2 is index 1 and so on ..
Comments
Post a Comment