jjzjj

newTabSpec

全部标签

android - TabHost.newTabSpec 中使用的参数标记的用法是什么

我可以知道,对于以下代码。//InitializeaTabSpecforeachtabandaddittotheTabHostspec=tabHost.newTabSpec("artists").setIndicator("TheArtists",res.getDrawable(R.drawable.ic_tab_artists)).setContent(intent);将“艺术家”标签作为newTagSpec参数的目的是什么?我应该使用像这样的国际化字符串吗?spec=tabHost.newTabSpec(getString(R.string.artists)).setIndicat