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

前端 未结 1 2044
一向
一向 2021-02-10 16:17
public class HMITabActivity extends TabActivity{
 @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
                 


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

    From the child activity:

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