Switching Tabs

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Switching Tabs

Postby dougal » Mon Oct 13, 2008 2:21 pm

Hi,

I have an application that has a number of tabs, Tab1, Tab2, Tab3. I want to be able to click on a button in tab1 which forces the application to switch to another tab, either tab 2 or tab3.

Does anyone know how to do this?
dougal
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Oct 13, 2008 2:13 pm

Top

Postby atrus123 » Thu Oct 16, 2008 9:42 pm

Hmm... I haven't tried it, but maybe using the setCurrentTab function?

http://code.google.com/android/referenc ... entTab(int)
atrus123
Developer
Developer
 
Posts: 26
Joined: Thu Oct 09, 2008 2:16 am
Location: Annapolis, MD

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 8 guests