Full Screen untitled settings in Android
Method 1: Implemented in java code,
// Cancel the title
This. requestWindowFeature (Window. FEATURE_NO_TITLE );
// Full screen
This. getWindow (). setFlags (WindowManager. LayoutParams. FLAG_FULLSCREEN,
// WindowManager. LayoutParams. FLAG_FULLSCREEN );
Method 2: In AndroidManifest. xml, you can use the Android theme method defined by the Android system in <application/> or <activity/> as needed,
Android: theme = "@ android: style/Theme. NoTitleBar. Fullscreen"
Method 3: Create a styles. xml file under res/values and write the following content into the file,
<? Xml version = "1.0" encoding = "UTF-8"?>
<Resources>
<Style name = "theme_fullScreen">
<! -- Set no title -->
<Item name = "android: windowNoTitle"> true </item>
<! -- Set full screen -->
<Item name = "android: windowFullscreen"> true </item>
</Style>
</Resources>
Then, in AndroidManifest. xml, you can use the custom Android topic method in <application/> or <activity/> as needed,
Android: theme = "@ style/theme_fullScreen"
From tianshijianbing1989