Android 引用不带“的样式”@&引用;象征?
我有以下代码:Android 引用不带“的样式”@&引用;象征?,android,xml,styles,Android,Xml,Styles,我有以下代码: @颜色/原色 @颜色/原色\u深\u颜色 @风格/米沃卡帕风格 @空的 0dp @android:彩色/白色 @android:彩色/白色 @样式/类别选项卡文本外观 #A8A19E 为什么在MiwokAppBarStyle中,我们在引用父样式时不使用@符号,比如parent=“@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse”?,为什么我们引用父样式时使用style/而不是引用不使用style/前缀,比如paren
@颜色/原色
@颜色/原色\u深\u颜色
@风格/米沃卡帕风格
@空的
0dp
@android:彩色/白色
@android:彩色/白色
@样式/类别选项卡文本外观
#A8A19E
为什么在MiwokAppBarStyle
中,我们在引用父样式时不使用@
符号,比如parent=“@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse”
?,为什么我们引用父样式时使用style/
而不是引用不使用style/
前缀,比如parent=“Widget.AppCompat.Light.ActionBar.Solid.Inverse”
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/primary_color</item>
<item name="colorPrimaryDark">@color/primary_dark_color</item>
<item name="actionBarStyle">@style/MiwokAppBarStyle</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<!-- App bar style -->
<style name="MiwokAppBarStyle" parent="style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
<!-- Remove the shadow below the app bar -->
<item name="elevation">0dp</item>
</style>
<!-- Style for a tab that displays a category name -->
<style name="CategoryTab" parent="Widget.Design.TabLayout">
<item name="tabIndicatorColor">@android:color/white</item>
<item name="tabSelectedTextColor">@android:color/white</item>
<item name="tabTextAppearance">@style/CategoryTabTextAppearance</item>
</style>
<!-- Text appearance style for a category tab -->
<style name="CategoryTabTextAppearance" parent="TextAppearance.Design.Tab">
<item name="android:textColor">#A8A19E</item>
</style>
</resources>