Skip to content Skip to sidebar Skip to footer

Custom Dialog Opens Full Screen

I'm developing an Android application and I have a question about custom dialogs. I do this to open a custom dialog: protected void showSetFriendEmailDialog() { // Create the d

Solution 1:

you have to use android.R.style.Theme.Dialog instenad of android.R.style.Theme_DeviceDefault

Solution 2:

Use R.style.Theme_AppCompat_Dialog in order to get the proper dialog.

Solution 3:

Just make a custom style and apply it to dialog...

<stylename="full_screen_dialog"parent="@android:style/Theme.Dialog"><itemname="android:windowNoTitle">true</item><itemname="android:windowFullscreen">true</item><itemname="android:windowIsFloating">true</item><itemname="android:windowContentOverlay">@null</item><itemname="android:windowAnimationStyle">@android:style/Animation.Dialog</item><itemname="android:windowSoftInputMode">stateUnspecified|adjustPan</item><itemname="android:windowBackground">@android:color/transparent</item></style>

Post a Comment for "Custom Dialog Opens Full Screen"