Sohel Mansuri
Sohel Mansuri

Reputation: 564

Android TabContent Change

layout

Hello,

In the following picture I have the layout of my app. I have a tab widget within a tab host at the bottom (Green Color). I have the tabcontent in the middle (Pink Color).

I have 3 different tabs in the tab host however, I have 2 buttons on the top-right (Blue Color). I want to click on a button at the top and have the tab content change.

Is this possible?

On a regular tab click I have each tab open different activities.

Thanks,

Upvotes: 2

Views: 324

Answers (1)

akkilis
akkilis

Reputation: 1934

use yourTabHost.setCurrenttab(INDEX YOU WANT TO SET)

Upvotes: 2

Related Questions