【发布时间】:2011-11-26 04:33:29
【问题描述】:
TabSpec spec1 = tabHost.newTabSpec("Tab1");
spec1.setIndicator("Tab1", getResources().getDrawable(R.drawable.news) );
Intent in1 = new Intent(this, Act1.class);
spec1.setContent(in1);
我确实使用了此代码。但是当我使用此代码时,图像未显示在选项卡上,仅显示文本。所以请告诉我任何建议。此代码仅适用于一个选项卡。
【问题讨论】:
-
什么不起作用?你得到什么错误?
-
希望您将 tabspec spec1 添加到 tabHost?
标签: android