android:theme=“@android:style/Theme.NoTitleBar.Fullscreen” works on Application level but not at the activity level. Any clue?

后端 未结 5 1530
清歌不尽
清歌不尽 2020-12-05 11:37

I need to make one of my activities called MyNoStatusBarActivity.java a full-screen activity.

I have added in the Manifest :



        
5条回答
  •  遥遥无期
    2020-12-05 12:05

    I put this in my activity:

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_splash);
    

    And in my manifest I don't modify, this is mine, without modifications:

    android:theme="@style/AppTheme"
    

    In my activty xml:

    android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
    

提交回复
热议问题