Window

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.

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

To remove this title bar we need to use,

[sourcecode language="java"]
@Override
public void onCreate(Bundle savedInstanceState) {
super.

Set icon for title bar in Android

In Android we have the facility to set an icon for the title bar.

In the below image the title bar contains only the title.
Title name is Iconic Memory

To set an icon in the title bar use the below piece of code...

[sourcecode language="java"]
@Override
public void onCreate(Bundle savedInstanceState)

Syndicate content