Theme for android studio does not change

I have a problem when changing the theme of the application

I have two activity bookmarks and a main activity

splash theme

android:theme="@android:style/Theme.DeviceDefault.Wallpaper.NoTitleBar"

      

main theme of activity

android:theme="@style/AppTheme"

      

My question is: everything is very good. but the theme does not change the main theme activtiy

 android:theme="@android:style/Theme.DeviceDefault.Wallpaper.NoTitleBar"

      

does not change

+3


source to share


2 answers


Just check the theme installed at the application level



<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:fullBackupContent="false"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">

      

0


source


Are there any codes to change the style in your MainActivity.java? I prefer to write code in the onCreate operation when I want to hide the header:



requestWindowFeature(Window.FEATURE_NO_TITLE);

      

0


source







All Articles