eltos / SimpleDialogFragments

An Android library to create dialogs with ease and handle user interaction reliably, using fragments and material design.
Apache License 2.0
119 stars 17 forks source link

Feature request: Allow to set dialog message as CharSequence #78

Closed mtotschnig closed 2 years ago

mtotschnig commented 2 years ago

Currently, in order to create a dialogue with styled text, the only option is to pass in HTML. With Kotlin's excellent extension methods for SpannableStringBuilder, it is now easier to build a CharSequence directly instead of constructing HTML

It might be sufficient just to change signature of SimpleDialog#msg to accept CharSequence

Links KTX SpannableStringBuilder