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

Is this bug? #24

Closed ted66 closed 10 years ago

ted66 commented 10 years ago

// custom dialog background final TypedArray a = getActivity().getTheme().obtainStyledAttributes(null, R.styleable.DialogStyle, R.attr.sdlDialogStyle, 0); Drawable dialogBackground = a.getDrawable(R.styleable.DialogStyle_dialogBackground); a.recycle(); dialog.getWindow().setBackgroundDrawable(dialogBackground);

a is nullpoint and dialogBackground is null too

davidvavra commented 10 years ago

How did you manage to make it null? Did you set it as null in yours styles.xml?

ted66 commented 10 years ago

yes,it my falut

thx ur answer