0
嗨, 我一直在嘗試很長時間來使用Android Studio更改非常簡單的基本程序中的操作欄顏色 - 沒有成功。 我正在使用我的三星Galaxy S4進行測試。怎麼了?當使用Style.XML(Holo Theme)時無法更改操作欄顏色
我的清單包括這一行:機器人:主題= 「@風格/ AppTheme」
和Style.xml是這個:在清單
**<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.Light">
<!-- Customize your theme here. -->
</style>
<style name="MyActionBar" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">#ff0000</item>
</style>**
看看:https://developer.android.com/intl/es/training/basics/actionbar/styling.html –