Android: making a fullscreen application

后端 未结 13 2010
北恋
北恋 2020-11-30 00:31

What is the simplest change that I can make to a new Blank Activity, as created by the latest version of Android Studio, to get the app to appear fullscreen?

I want

13条回答
  •  孤独总比滥情好
    2020-11-30 01:06

    I recently had the exact same issue and benefitted from the following post as well (in addition to Rohit5k2's solution above):

    https://bsgconsultancy.wordpress.com/2015/09/13/convert-any-website-into-android-application-by-using-android-studio/

    In Step 3, MainActivity extends Activity instead of ActionBarActivity (as Rohit5k2 mentioned). Putting the NoTitleBar and Fullscreen theme elements into the correct places in the AndroidManifest.xml file is also very important (take a look at Step 4).

提交回复
热议问题