TabSpec ts1=tabHost.newTabSpec("Tab1");
ts1.setIndicator("首页",getResources().getDrawable(android.R.drawable.ic_menu_call));
//设置此分页的内容
ts1.setContent(new Intent(MainActivity.this,Home.class));tabHost.addTab(ts1);
将android:theme改成Theme.black即可
Theme.holo不支持同时显示
<application android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black" >
本文详细介绍了如何使用TabHost实现Android应用中的分页功能,并通过修改主题风格来实现不同外观效果,包括设置分页标题、图标以及内容加载逻辑。
1831

被折叠的 条评论
为什么被折叠?



