Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.48 KB

COLORPICKER.md

File metadata and controls

32 lines (22 loc) · 1.48 KB

Fusion

Fusion By BlackBeared License: GPL v3

An Easy-to-use Kotlin based Customizable Library with Material Layouts by @blackbeared.

Fully customizable Colorpicker dialog.

Fusion

Sample Usage

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()

Description

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.