Reputation: 22076
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
So can you tell how can I remove it or hide it?
Upvotes: 0
Views: 404
Reputation: 2393
use any one.
Manifest:
android:theme="@android:style/Theme.NoTitleBar"
Or
java:
requestWindowFeature(Window.FEATURE_NO_TITLE);
Upvotes: 1
Reputation: 2285
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
Upvotes: 0
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
Reputation: 11775
requestFeature(FEATURE_NO_TITLE);
in you activity's onCreate
before setting the layout should remove it.
Upvotes: 0