这个问题纠结了很久,最后终于找到了办法。
代码如下
tabHost.addTab(tabHost.newTabSpec("tab3")
.setIndicator("destroy")
.setContent(new Intent(this, SecondTab.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
关键就在于最后[......]
近期评论