[英]Material Design Theme Error
我最近決定在我的應用程序中開始使用“材料設計”。 編譯期間出現此錯誤:
Error:(12, 22) No resource found that matches the given name: attr 'windowNoTitle'.
下面是指向這個styles.xml
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="MyMaterialTheme" parent="MyMaterialTheme.Base">
</style>
<style name="MyMaterialTheme.Base" parent="Theme.AppCompat">
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
將<item name="windowNoTitle">true</item>
更改為<item name="android:windowNoTitle">true</item>
。
只有一些屬性(主要與appcompat-v7
庫相關)需要android:
-less版本。 對於所有其他人,您應該始終使用android前綴。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.