There are two ways of full screen, the first of which is configured in the Festxml file:
That is, add Android:theme= "@android: Style/theme.notitlebar.fullscreen" To the Activity node:
<activity android:name= "com.howlaa.girlsos.FirstActivity" android:label= "@string/app_name" Android:theme= "@android: Style/theme.notitlebar.fullscreen" > <intent-filter> <action Android : Name= "Android.intent.action.MAIN"/> <category android:name= "Android.intent.category.LAUNCHER"/> </intent-filter> </activity>
The second is written in Java code, in the OnCreate () method of the activity:
Requestwindowfeature (Window.feature_no_title); Set Untitled GetWindow (). SetFlags (WindowManager.LayoutParams.FILL_PARENT, WindowManager.LayoutParams.FILL_PARENT ); Set the full
note written before the Setcontentview method, otherwise it will be an error!
Fullscreen in Android