Home > Android Tutorial, TitleBar > How to hide the title bar in Android?

How to hide the title bar in Android?

When we develop a game or some other application, we may need to show a full page(screen) for users.

See the below image, In that Alarm Clock is the title showing in title bar.

To remove this title bar we need to use,


@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_NO_TITLE);
}

After this,

Now the title bar will be removed.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

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: