This article describes the method of implementing full-screen display in Android programming interface. Share it for your reference, as follows:
In developing Android applications, we will encounter setting some interfaces to full screen display format, and there are two ways to implement them. One is implemented in Java code, and the other is implemented in configuration files.
1. Set it in Java code
(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); //No titlegetWindow().setFlags(.FLAG_FULLSCREEN, .FLAG_FULLSCREEN); //full screensetContentView();
2. Modify in the Manifest file
Add in the default startup activity
Copy the codeThe code is as follows:
android:theme="@android:style/"
Just<activity android:name=".MainActivity" android:label="@string/app_name" android:theme="@android:style/" > <intent-filter> <action android:name="" /> <category android:name="" /> </intent-filter> </activity>
For more information about Android development, readers who are interested in reading the topic of this site:Android development introduction and advanced tutorial》
I hope this article will be helpful to everyone's Android programming design.