Reputation: 4382
How to make AlertActivity
full screen in android
basically AlertActivity
is an Activity
which implements
DialogInterface
ref
Upvotes: 1
Views: 462
Reputation: 5145
In activity oncreate() method, you can write like this:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
In manifest, you can write this that particular activity to set theme:
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Upvotes: 1
Reputation: 231
just add this in your Menifest activity tag which you want to be full screen
android:theme="@android:style/Theme.NoTitleBar"
Upvotes: 0
Reputation: 391
use this on your onCreate method
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
Upvotes: 0
Reputation: 1039
Try this on your onCreateDialog() method:
Dialog dialog=new Dialog(this,android.R.style.Theme_Dark_NoTitleBar_FullScreen)
Upvotes: 0
Reputation: 1967
In the manifest file inside your activity tag add this line
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen"
Upvotes: 0