TitleBar

Android Hide the title bar in 2 ways

In android, we can hide the title bar in 2 ways. Hiding the title bar is used to show the full screen in game applications, browser related applications, etc...
First method is through code , we have already seen that.
Second method is through AndroidManifest.xml.

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