To hide the title bar you need to use a predefined style: Android:theme= "@android: Style/theme.notitlebar".
Hide the status bar: Android:theme= "@android: Style/theme.notitlebar.fullscreen".
<?XML version= "1.0" encoding= "Utf-8"?>
<Manifest
xmlns:android= "Http://schemas.android.com/apk/res/android"
Package= "De.vogella.android.temperature"
Android:versioncode= "1"
Android:versionname= "1.0">
<Application
Android:icon= "@drawable/icon"
Android:label= "@string/app_name">
<activity
Android:name=". Convert "
Android:label= "@string/app_name"Android:theme= "@android: Style/theme.notitlebar.fullscreen" >
<Intent-filter>
<ActionAndroid:name= "Android.intent.action.MAIN" />
<categoryAndroid:name= "Android.intent.category.LAUNCHER" />
</Intent-filter>
</Activity>
</Application>
< USES-SDKandroid:minsdkversion= "9" />
</Manifest>
@Override Public voidonCreate (Bundle savedinstancestate) {Super. OnCreate (savedinstancestate); //Hide TitleBar of application//must be before setting the layoutrequestwindowfeature (Window.feature_no_title); //Hide StatusBar of Android//could also is done laterGetWindow (). SetFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN ); Setcontentview (R.layout.main); Text=(EditText) Findviewbyid (r.id.edittext01); }
Android Implementation hides the status bar and title bar