【发布时间】:2013-09-17 08:38:25
【问题描述】:
我没有使用 Tabhost(我也不想),我已经尝试了所有方法:
这是我的操作栏,我正在使用全息灯和深色操作栏
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
我尝试使用这个有用的网站但没有成功。
我也尝试过失败
actionBar.setStackedBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.color_brown_dark)));
这是我的styles.xml
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
<item name="android:actionBarStyle">@style/Lemonbar</item>
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
Lemonbar 是覆盖 Theme.Holo.Light.DarkActionBar 的样式,它是使用 android 动作栏样式生成器创建的。 当我启动应用程序时,操作栏仍然和以前一样,就像没有应用新样式一样
【问题讨论】:
标签: android android-layout android-actionbar