0
一个内置的模板为Android Studio将创建下列主题:材料主题命名约定
<resources>
<!-- Base App Theme -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>
在这种情况下AppTheme.NoActionBar
未明确指定AppTheme
作为父。 Android是否使用命名约定并在此情况下隐式继承主题?
看一看http://developer.android。 com/guide/topics/ui/themes.html#Inheritance –
@DavidMedenjak随时发布我有什么作为答案,所以我可以接受你的答案。 – Dismissile
谢谢,只要继续接受你的:) –