Android tabhost don'中的选项卡;内容不恰当
我正在制作一个android应用程序,通过webview使用tabs小部件来显示应用程序中的网页。 执行时应用程序未显示正确的数据。 它只显示我为特定选项卡添加的html页面。但是html页面可以在所有选项卡中看到。而且主要内容是不可见的Android tabhost don'中的选项卡;内容不恰当,android,android-tabhost,Android,Android Tabhost,我正在制作一个android应用程序,通过webview使用tabs小部件来显示应用程序中的网页。 执行时应用程序未显示正确的数据。 它只显示我为特定选项卡添加的html页面。但是html页面可以在所有选项卡中看到。而且主要内容是不可见的 您已经为每个选项卡使用了homespec。为选项卡使用各自的规格。 很抱歉,由于我的声誉,我无法发表评论。您在每个选项卡上都使用了homespec。为选项卡使用各自的规格。 很抱歉,由于我的声誉,我无法发表评论。您正在添加alwayshomespec选项卡
您已经为每个选项卡使用了
homespec
。为选项卡使用各自的规格。
很抱歉,由于我的声誉,我无法发表评论。您在每个选项卡上都使用了
homespec
。为选项卡使用各自的规格。
很抱歉,由于我的声誉,我无法发表评论。您正在添加always
homespec
选项卡
TabSpec homespec = th.newTabSpec("home");
homespec.setContent(R.id.tab1);
homespec.setIndicator("Home");
th.addTab(homespec);
TabSpec static1spec = th.newTabSpec("static1");
homespec.setContent(R.id.tab2);
homespec.setIndicator("Static1");
th.addTab(homespec);
TabSpec static2spec = th.newTabSpec("static2");
homespec.setContent(R.id.tab2);
homespec.setIndicator("Static2");
th.addTab(homespec);
您正在添加始终
homespec
选项卡
TabSpec homespec = th.newTabSpec("home");
homespec.setContent(R.id.tab1);
homespec.setIndicator("Home");
th.addTab(homespec);
TabSpec static1spec = th.newTabSpec("static1");
homespec.setContent(R.id.tab2);
homespec.setIndicator("Static1");
th.addTab(homespec);
TabSpec static2spec = th.newTabSpec("static2");
homespec.setContent(R.id.tab2);
homespec.setIndicator("Static2");
th.addTab(homespec);