Android. How to change Activity within a Tab

前端 未结 4 2283
面向向阳花
面向向阳花 2020-12-07 17:03

Following situation: I have TabActivity with e.g. three tabs, TabA, TabB, TabC.

There are a button in activity (Act_C_1) of TabC. So if the user clicks on that butto

4条回答
  •  天涯浪人
    2020-12-07 17:36

    Handle the onClick event for button

    finish() the activity Add startActivity method to start another activity.

    Thanks

提交回复
热议问题