😍 A beautiful, fluid, and extensible dialogs API for Kotlin & Android.
Minor API change: The message(...)
function no longer provides html
and lineSpacingMultiplier
as parameters. Instead, it works like this:
MaterialDialog(this).show {
...
message(R.string.htmlContent) {
html() // or...
html { toast("Clicked link: $it") }
lineSpacing(1.4f)
messageTextView.doSomething() // you can act directly on the TextView
}
}
BottomSheet()
dialog behavior now accepts an optional LayoutMode
parameter, which you can use
to instruct the bottom sheet to be expandable to the screen height or limit itself to wrap the content
of its content. See the updated Bottom Sheets documentation.setPeekHeight(...)
extension method for MaterialDialog
that you can use to set the
default peek height and animate peek height changes.cornerRadius
method.Bottom sheets are here! Checkout the README and sample project for details.
internal
which don't need to be exposed to consumers.updateListItems(...)
method to update plain/single/multi-choice items after dialog creation.datetime
dialog layouts looking uncentered by only applying dialog width wrap in landscape.updateListItems(...)
method to update plain/single/multi-choice items after dialog creation.datetime
dialog layouts looking uncentered by only applying dialog width wrap in landscape.