how to Keep Tabhost when start other activity

前端 未结 3 955
遇见更好的自我
遇见更好的自我 2021-01-07 17:22

I have a problem with TabHost...

I have TabBarActivity class flow as :

public class TabBarActivity extends TabActivity implements OnTabChangeListener{

<
3条回答
  •  醉酒成梦
    2021-01-07 17:52

    You have to use TabGroupActivity class,

    further more u have to implement Tab1Activity class and Tab2Activity class which are extends from TabGroupActivity

    where you will call startChildActivity(TAB1.class) and startChildActivity(TAB2.class) respectively, by this you will have options for your tabs whether u r in TAB1 or TAB2.

    you can have the TabGroupActivity class implemented sample good onlinely,

    recently i had simillar project thats y m stating like this.

提交回复
热议问题