如果单击该特定选项卡,如何从其子活动返回父Tab活动。(如果是TabGroupActivity)
答案 0 :(得分:0)
@Override
public void onBackPressed() {
finish();
super.onBackPressed();
}
或致电活动..........
Intent cityIntent = new Intent(getParent(),
YourActivity.class);
TabGroupActivity parentActivity = (TabGroupActivity) getParent();
parentActivity
.startChildActivity("YourActivity", cityIntent);