For example 2, change ..
colorPicker.setFastChooser(new ColorPicker.OnFastChooseColorListener() {
.. to ..
colorPicker.setOnFastChooseColorListener(new ColorPicker.OnFastChooseColorListener() {
And if you want a Kotlin example ..
val colorPicker = ColorPicker(this)
colorPicker.setColors(hexArrrayList)
colorPicker.setColumns(4)
colorPicker.setOnFastChooseColorListener(object : ColorPicker.OnFastChooseColorListener {
override fun setOnFastChooseColorListener(position: Int, color: Int) {
// put code
}
override fun onCancel() {
// put code
}
})
colorPicker.show()
For example 2, change ..
colorPicker.setFastChooser(new ColorPicker.OnFastChooseColorListener() {
.. to ..colorPicker.setOnFastChooseColorListener(new ColorPicker.OnFastChooseColorListener() {
And if you want a Kotlin example ..