0
我是Android开发新手。 最初,actionBar上的tabView包含蓝色(如果它具有焦点)。我只想将其改为另一种颜色。所以actionBar的其他样式组件应该保持不变。更改操作栏上TabView的颜色
我写了下面的代码:
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="CustomActivityTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/MyActionBarTabStyle</item>
</style>
<style name="MyActionBarTabStyle" parent="android:style/Widget.Holo.Light.ActionBar.TabView">
<item name="android:background">@drawable/ab_transparent_tabdesign</item>
</style>
</resources>
而且在表现我写这
<activity
android:label="@string/app_name"
android:name=".mainActivity"
android:theme="@style/CustomActivityTheme"
>
</activity>
当我运行我的应用程序,操作栏完全消失! 我真的可以使用一些帮助。 谢谢
有答案的人吗? – CemKacmaz