Nikunj Patel
Nikunj Patel

Reputation: 22076

REMOVE upper Border layout

I have develop app in which I set layout 480 * 320, it is starting from top. But my problem is there is one in build border are display when we take a new project and it is display in all activity. So I want to disable it.

Border like

this

So can you tell how can I remove it or hide it?

Upvotes: 0

Views: 404

Answers (4)

Android
Android

Reputation: 2393

use any one.

Manifest:

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

Or

java:

requestWindowFeature(Window.FEATURE_NO_TITLE);

Upvotes: 1

Arindam Mukherjee
Arindam Mukherjee

Reputation: 2285

this.requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

Upvotes: 0

Arnab Chakraborty
Arnab Chakraborty

Reputation: 7472

I think what you are trying to do is hide the TitleBar of the application. You can do that by changing the application theme.

Add android:theme="@android:style/Theme.Light.NoTitleBar" in the <application> tag of your manifest file. Any theme with .NoTitleBar should do the trick.

Upvotes: 4

denis.solonenko
denis.solonenko

Reputation: 11775

requestFeature(FEATURE_NO_TITLE);

in you activity's onCreate before setting the layout should remove it.

Upvotes: 0

Related Questions