I\'m developing an Android application and I have a question about custom dialogs.
I do this to open a custom dialog:
protected void showSetFriendEma
you have to use android.R.style.Theme.Dialog
instenad of android.R.style.Theme_DeviceDefault
Just make a custom style and apply it to dialog...
<style name="full_screen_dialog" parent="@android:style/Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowIsFloating">true</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowAnimationStyle">@android:style/Animation.Dialog</item>
<item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
Use R.style.Theme_AppCompat_Dialog
in order to get the proper dialog.