An Easy-to-use Kotlin based Customizable Library with Material Layouts by @blackbeared.
Shared dialog provides a facility to add custom view to dialog. Here is a kotlin code to use Custom Dialog.
AwesomeCustomDialog(this)
.setTopColor(Color.parseColor("#00BCD4"))
.setIcon(R.drawable.ic_register)
.setIconTintColor(Color.WHITE)
.setView(R.layout.bottomview)
.configureView(object: AwesomeCustomDialog.ViewConfigurator{
override fun configureView(v: View) {
// Configure your view here.
}
})
.show()
Use this dialog to add custom view to fully customizable dialog, and also you can configure those views.