【发布时间】:2013-01-10 11:21:48
【问题描述】:
我想更改 uyari_str 的文本大小,但我不能。我的代码是:
tabHost.addTab(spec);
view = new MyView(this, R.drawable.res_tab_uyar);
spec = tabHost.newTabSpec("uyar").setIndicator(buildIndicator(R.string.uyari_str)).setContent(new TabHost.TabContentFactory(){
@Override
public View createTabContent(String tag) {
return tv;
}
});
【问题讨论】:
-
你试过使用 Html.fromHtml 吗?
-
你试过了吗,因为我们还在strings.xml文件中嵌入了html
-
如何更改?我的字符串是:
警告 -
尝试作为 buildIndicator(Html.fromHtml(""+R.string.uyari_str+"")
-
不工作。 Sting 未显示在屏幕上
标签: android android-tabhost text-size