An Easy-to-use Kotlin based Customizable Library with Material Layouts by @blackbeared.
Colorpicker dialog provides a facility to pick color. Here is a kotlin code to use Colorpicker Dialog.
AwesomeColorPickerDialog(this)
.setIconTintColor(Color.WHITE)
.setColorsArray(Palette.DEFAULT)
.setConfirmButton("Done", object : AwesomeColorPickerDialog.OnColorConfirmListener {
override fun onColorConfirmed(color: Int) {
AwesomeToast.info(this@Dashboard,
"Color picked successfully: #" + Integer.toHexString(color)).show()
}
})
.show()
Write the above kotlin code to pick the color from the used color-pellate, you can change the colors of the colorpicker dialog, and get the selected color in the AwesomeColorPickerDialog.OnColorConfirmListener's onColorConfirmed method.