【发布时间】:2011-07-27 17:03:16
【问题描述】:
我有一个带有 TabHost 和三个选项卡的应用程序。他是我如何创建每个标签的示例:
intent = new Intent().setClass(this, Setup.class); //intent.getClass()
spec = tabHost.newTabSpec("setup").setIndicator("",
res.getDrawable(R.drawable.tab_setup))
.setContent(intent);
tabHost.addTab(spec);
我的目标是,当您切换到新选项卡时,调用一个方法来更新该选项卡上显示的信息。
这里有一个问题:标签如何知道它已被显示?
【问题讨论】:
标签: android tabs android-intent android-tabhost