嘿,我试图改变我的行动栏的背景,但我不安静我确定了解样式文件的结构。所以基本上我有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