1、
res --> values --> styles.xml
新版:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
</style>
旧版:
<style name="AppBaseTheme" parent="android:Theme.Light">
</style>
2、
res --> values-v11 --> styles.xml
新版:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
</style>
旧版:
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
</style>
3、
res --> values-v14 --> styles.xml
新版:
<style name="AppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
</style>
旧版:
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
</style>
4、
res --> menu --> main.xml
新版:
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never"/>
旧版:
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
X
本文对比分析了Android中styles.xml文件在不同版本间的主题样式变化,包括从旧版的使用android前缀到新版直接使用Theme.AppCompat系列作为父类的变化过程。
1708

被折叠的 条评论
为什么被折叠?



