我没有使用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动作条样式生成器创建的。当我启动应用程序时,actionbar仍然和以前一样,就像没有应用新样式一样。
发布于 2013-09-17 08:42:57
为此尝试使用谷歌指南。
发布于 2013-09-17 08:44:01
它被称为Tab指示器。您会发现这个android开发指南很有用。
https://stackoverflow.com/questions/18845079
复制相似问题