RSS

Search Engine

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.

0 comments:

Post a Comment