first introduce the method of removing the title bar:The first type:Also commonly used when the introduction of a method Requestwindowfeature (window.feature_no_title);//Remove the title bar
Note This sentence must be written in front of the Setcontentview () method, or it will be an error
The second type:Define <application android:icon= "@drawable/icon" in the Androidmanifest.xml file
Android:label= "@string/app_name"
android:theme= "@android: Style/theme.notitlebar" >
As can be seen, the entire application will be removed from the title bar, if you want to remove the title bar of an activity, you can add this attribute to the activity tag
Modify Apptheme
<stylename= "Apptheme"Parent= "Appbasetheme"><Itemname= "Android:windownotitle">True</Item><!--All customizations, that is, specific to a particular api-level can go. -</style>
Full screen or cancel title bar in Android