avast / android-styled-dialogs

Backport of Material dialogs with easy-to-use API based on DialogFragment
Apache License 2.0
2.15k stars 450 forks source link

i have extra space #23

Closed ted66 closed 10 years ago

ted66 commented 10 years ago

http://imgur.com/r6k3Zow

my dialog over my button

how to slove?

thx

cowboybkit commented 10 years ago

same issue

ernes87lp commented 10 years ago

Are you setting the Dialog theme?

e.g:


SimpleDialogFragment.createBuilder(this, getSupportFragmentManager())
                .setTitle(R.string.delete)
                .setMessage(R.string.deleting_message)
                .setPositiveButtonText(R.string.yes)
                .setNegativeButtonText(R.string.no).setRequestCode(300)
                .setTag("deleteItem").show();
setTheme(R.style.DialogStyleDark_Custom);

ted66 commented 10 years ago

thx^^

i solution it

davidvavra commented 10 years ago

Best to set theme in your theme.xml:

<item name="sdlDialogStyle">@style/DialogStyleLight.Custom</item>