Method One: The code must be joined before Setcontentview (R.layout.activity_main)
Remove title bar
Requestwindowfeature (Window.feature_no_title);
Fullscreen
GetWindow (). SetFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
Method Two: Add the <activity tag in the manifest file
<!--remove the title bar--
Android:theme= "@android: Style/theme.notitlebar"
<!--remove the title bar and fullscreen--
Android:theme= "@android: Style/theme.notitlebar.fullscreen"
Both of the above methods can only be one activity to remove the title bar and fullscreen, how to let all the activity is canceled?
In the <<application tab in the manifest file, change theme to
<!--remove the title bar--
Android:theme= "@android: Style/theme.notitlebar"
<!--remove the title bar and fullscreen--
Android:theme= "@android: Style/theme.notitlebar.fullscreen"
Ways to remove title bars and fullscreen