Android Tech

The more we share, the more we get

Title (Part 4) – Remove title bar from your app


If you don’t like your application has a title bar, you can remove it by 2 ways:

– Using AndroidManifest.xml
– Using Java code

1. Using AndroidManifest.xml

Insert this attribute to your main activity:

android:theme=”@android:style/Theme.NoTitleBar”

Like this:

2. Using Java code

Go to source code Java of your main activity, and insert this line:

requestWindowFeature(Window.FEATURE_NO_TITLE);

Like this:

Run your application and you will see the screen with no title:

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: