2016-02-06 36 views
1

我刚开始学习android,我想改变我整个android应用程序的主题。 Based on this更改我整个android studio应用程序混淆的主题

我想将主题更改为黑色材质主题。在我的androidmanifest.xml文件中

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/Theme.Material"> // here is the change 

但是我的应用程序无法识别Theme.Material这个主题?如何解决它?

回答

1

变化android:theme="@style/Theme.Material">到:

android:theme="@android:style/Theme.Material"> 
+0

他说:API级别至少21个,其他的方法呢? – KKKK

+0

您要使用的主题是API等级21,如果你的目标下的API,你应该使用不同的主题 – Pooya

+0

但我检查我的项目结构和我的API是26 – KKKK

相关问题