嘿,我試圖改變我的行動欄的背景,但我不安靜我確定瞭解樣式文件的結構。所以基本上我有style.xml,它將一些元素傳遞給所需的樣式。然後我有Theme.xml,它有一組樣式,對嗎?你如何鏈接這兩個換句話說,我該如何說出我想要的指定風格的主題?我不能設法改變,因此這裏的操作欄的背景是我的代碼:style.xml和theme.xml android studio之間的區別?
style.xml:
<!-- Base application theme. -->
<style name="MyActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="android:colorBackground">@color/color_lightBlue</item>
</style>
</resources>
theme.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyCustomTheme" parent="Theme.AppCompat.Light">
</style>
</resources>
和跆拳道是V11 /風格?
v11/style適用於使用Android API版本11或更高版本的Android設備。如果您想要特定於更高版本的樣式,則可以使用該文件夾結構。 – 2015-02-11 00:28:14