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

我想将主题更改为“深色材质”主题。在我的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这个主题吗?如何解决?

最佳答案

android:theme="@style/Theme.Material">更改为:

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

10-07 19:14
查看更多