1

How to make AlertActivity full screen in android

basically AlertActivity is an Activity which implements DialogInterface ref

5 Answers 5

1

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" 
Sign up to request clarification or add additional context in comments.

Comments

0

In the manifest file inside your activity tag add this line

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

Comments

0

Try this on your onCreateDialog() method:

Dialog dialog=new Dialog(this,android.R.style.Theme_Dark_NoTitleBar_FullScreen) 

Comments

0

use this on your onCreate method

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 

Comments

0

just add this in your Menifest activity tag which you want to be full screen

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.