我可以知道,下面的代码。什么是TabHost.newTabSpec中使用的参数标签的用法
// Initialize a TabSpec for each tab and add it to the TabHost
spec = tabHost.newTabSpec("artists").setIndicator("The Artists",
res.getDrawable(R.drawable.ic_tab_artists))
.setContent(intent);
什么是具有“艺术家”的标签作为newTagSpec
参数的目的是什么?我应该使用国际化字符串如
spec = tabHost.newTabSpec(getString(R.string.artists)).setIndicator(getString(R.string.the_artists),
res.getDrawable(R.drawable.ic_tab_artists))
.setContent(intent);
但是,这是否解释了“组”标签的用途?什么是ic_tab_NameInNewTabSpec的方式? – 2011-04-21 02:50:49
这是您在newTabSpec()中使用的名称...这就是“组”标签的用途。它告诉编译器使用ic_tab_groups。 – 2011-04-21 11:21:45
任何说明这就是它的文档? – irwinb 2012-08-30 20:56:11