每次重新启动Android Studio时,Android活动主题都会发生变化
每次我重新启动Android Studio时,所有活动的主题都会更改为“theme”或“Light”,而我希望将主题保留为“AppTheme.NoActionBar” 我已包括以下内容:每次重新启动Android Studio时,Android活动主题都会发生变化,android,android-studio,Android,Android Studio,每次我重新启动Android Studio时,所有活动的主题都会更改为“theme”或“Light”,而我希望将主题保留为“AppTheme.NoActionBar” 我已包括以下内容: android:theme=“@style/AppTheme.NoActionBar”在我的android清单文件中。在定义应用程序的部分,确保在mainifest中定义了哪个主题: <application android:name=".ExampleApp" android:icon=
android:theme=“@style/AppTheme.NoActionBar”
在我的android清单文件中。在定义应用程序的部分,确保在mainifest中定义了哪个主题:
<application
android:name=".ExampleApp"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
...
进入您的活动标签:
<activity
android:theme ="@android:style/AppTheme.NoActionBar"/>
...
...
成功了!不知怎的,应用程序标记丢失了,一个android标记在我的清单文件中占据了它的位置。谢谢。
<activity
android:theme ="@android:style/AppTheme.NoActionBar"/>
...