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

Add support for dialog icon #124

Closed r0boto closed 8 years ago

r0boto commented 9 years ago

Hello,

Material dialogs have a possibility to display icon in the header of the dialog. Are You planning to add this feature?

Something like this:

  SimpleDialogFragment
                .createBuilder(mCtx, mFragmentManager)
                .setMessage(text)
                .icon(R.drawable.icon)
                .show();
davidvavra commented 8 years ago

Icons are not mentioned in Material Design Guidelines, so we don't plan to do it. You can create own dialog like IconDialogFragment and inherit from it, have a look at JayneDialogFragment from the demo app for inspiration.