Android 活动链接选项卡
我将创建一个tabhost并确保您按下一个tab键,它将显示一个带有xml布局集的活动。怎么办 我想这样的命令:Android 活动链接选项卡,android,android-layout,Android,Android Layout,我将创建一个tabhost并确保您按下一个tab键,它将显示一个带有xml布局集的活动。怎么办 我想这样的命令: tabHost.addTab(tabHost.newTabSpec("Factory").setContent( new MyTabContentFactory(this)).setIndicator("Factory")); 我可以在MyTabContentFactory类中正常加载布局吗?TabSpec spec3=tabhost.newTabSpec(“提及”); spec3
tabHost.addTab(tabHost.newTabSpec("Factory").setContent(
new MyTabContentFactory(this)).setIndicator("Factory"));
我可以在MyTabContentFactory类中正常加载布局吗?TabSpec spec3=tabhost.newTabSpec(“提及”);
spec3.setIndicator(“Menti”,getResources().getDrawable(R.drawable.ic_launcher));
spec3.setContent(newintent().setClass(this,notify.class));
在MyTabContentFactory类中设置该布局