Saturday 14 January 2012

Android : How to Remove Application Title and Status bar from Activity

We can remove the 'application name' from androd activity. Thus we can utilize this extra for activity. To do this

[1] Hiding Application Title

Request window feature. In the onCreate method of Activity, Add the following line
requestWindowFeature(Window.FEATURE_NO_TITLE);
OR
In AndroidManifest.xml file use the following android theme for your activity
<activity android:name=".YourActivityClassName" android:theme="@android:style/Theme.NoTitleBar"> </activity>


[2] Hiding App Title and Status Bar(Notification Bar)

Request window feature. In the onCreate method of Activity, Add the following line
getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
OR
In AndroidManifest.xml file use the following android theme for your activity
<activity android:name=".YourActivityClassName" android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> </activity>

No comments:

Post a Comment

About Us | Site Map | Privacy Policy | Contact Us | Blog Design | 2007 Company Name