how to change tab of a tabactivity from an activity started by the tabactivity ? or change current tab

前端 未结 1 1682
臣服心动
臣服心动 2021-02-10 16:10
public class HMITabActivity extends TabActivity{
 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
                 


        
相关标签:
1条回答
  • 2021-02-10 16:42

    From the child activity:

    ((TabActivity) getParent()).getTabHost().setCurrentTab(2)
    
    0 讨论(0)
提交回复
热议问题