Repository navigation
Dialog
com.rey.material.app.Dialog is a custom dialog that apply Material Design specification.

Initialize in code:
Dialog mDialog = new Dialog(context);
Dialog mDialog = new Dialog(context, styleId);You can chain methods to style Dialog:
mDialog.applyStyle(styleId)
.title("Dialog title")
.positiveAction("OK")
.negativeAction("CANCEL")
.contentView(view)
.cancelable(true)
...
.show();-
android:layout_width- the width of dialog. Can be dimension value ormatch_parentorwrap_contentenum (match_parentdoesn't make dialog full screen due to some padding of Material Design Dialog's spec). -
android:layout_height- the heightof dialog. Can be dimension value ormatch_parentorwrap_contentenum (match_parentdoesn't make dialog full screen due to some padding of Material Design Dialog's spec). -
di_dimAmount- The amount of dim applied to background outside dialog. -
di_backgroundColor- The background's color of dialog. -
di_elevation- The elevation of dialog. -
di_cornerRadius- The corner's radius of background. -
di_titleTextAppearance- The appearance setting of title text. -
di_titleTextColor- The color of title text. -
di_actionBackground- The background drawable of action buttons. -
di_actionRipple- The ripple effect style of action buttons. -
di_actionTextAppearance- The appearance setting of action texts. -
di_actionTextColor- The color of action texts. -
di_positiveActionBackground- The background drawable of positive action button. -
di_positiveActionRipple- The ripple effect style of positive action button. -
di_positiveActionTextAppearance- The appearance setting of positive action text. -
di_positiveActionTextColor- The color of positive action text. -
di_negativeActionBackground- The background drawable of negative action button. -
di_negativeActionRipple- The ripple effect style of negative action button. -
di_negativeActionTextAppearance- The appearance setting of negative action text. -
di_negativeActionTextColor- The color of positive negative text. -
di_neutralActionBackground- The background drawable of neutral action button. -
di_neutralActionRipple- The ripple effect style of neutral action button. -
di_neutralActionTextAppearance- The appearance setting of neutral action text. -
di_neutralActionTextColor- The color of neutral action text. -
di_dividerColor- The color of divider (divider is shown between action buttons and content view when content view is scrollable). -
di_dividerHeight- The height of divider. -
di_cancelable- Indicate that dialog is cancelable. -
di_canceledOnTouchOutside- Indicate that dialog will be canceled when touch outside.