There are two ways to set the full screen mode for android: one is to set the full screen mode in the program code, the other is to configure the manifest. xml file, and the second method is recommended.
The <application> and <activity> labels in the manifest. xml file contain the android: theme attribute.
Just add the following xml code.
Www.2cto.com
1 android: theme = "@ android: style/Theme. NoTitleBar. Fullscreen"
For example
The following code enables ActivityDemoActivity to be displayed in full screen mode
<Activity android: name = ". ActivityDemoActivity" android: label = "@ string/app_name" android: theme = "@ android: style/Theme. NoTitleBar. Fullscreen">
The following write rules apply full screen mode.
<? Xml version = "1.0" encoding = "UTF-8"?>
<Manifest xmlns: android = "http://schemas.android.com/apk/res/android" package = "uni. activity"
Android: versionCode = "1"
Android: versionName = "1.0" type = "codeph" text = "/codeph">
<Uses-sdk android: minSdkVersion = "7"/>
<Application android: icon = "@ drawable/icon" android: label = "@ string/app_name" android: theme = "@ android: style/Theme. NoTitleBar. Fullscreen">
<Activity android: name = ". ActivityDemoActivity"
Android: label = "@ string/app_name">
<Intent-filter>
<Action android: name = "android. intent. action. MAIN"/>
<Category android: name = "android. intent. category. LAUNCHER"/> </intent-filter>
</Activity>
<Activity android: name = ". Activity01" android: label = "@ string/app_name">
</Activity>
</Application>
</Manifest>
From a pig