Friday, December 17, 2010

Hide the title bar in Android Application

Hello Friends ,

There are simple code for hide the title bar in android.

But there are two way for hide the title bar in android.

First Way is.....

It is through AndroidManifest.xml . You can give the below source in your androidmanifest.xml

to hide the title bar.
<activity android:name=".Your Class"
android:theme="@android:style/Theme.NoTitleBar">
</activity>


So this are simple code for android manifest file.

Now the second way......


In your java file below code will be used

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
}


So this code will be very useful for hide the title bar in android application.

No comments:

Post a Comment

How to Free Up Storage Space on Your Android Phone (Without Deleting Photos)

Running out of space on your Android phone is one of the most common (and most annoying) problems out there - especially once you start gett...