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
謝謝,只要繼續接受你的:) –