neo*_*neo 4 android android-appcompat android-support-library
我最近决定在我的应用程序中开始使用"材料设计".编译期间出现此错误:
Error:(12, 22) No resource found that matches the given name: attr 'windowNoTitle'.
Run Code Online (Sandbox Code Playgroud)
下面是指向这个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>
Run Code Online (Sandbox Code Playgroud)
nat*_*rio 19
更改<item name="windowNoTitle">true</item>到<item name="android:windowNoTitle">true</item>.
只有一些属性(主要与appcompat-v7库相关)需要android:无版本.对于所有其他人,您应该始终使用android前缀.
| 归档时间: |
|
| 查看次数: |
4221 次 |
| 最近记录: |