🎨 A library that lets you implement ColorPicker, ColorPickerDialog, ColorPickerPreference.
🎉 Released a new version 2.0.4
! 🎉
setInitialColor
by the defaultColor
.🎉 Released a new version 2.0.3
! 🎉
ColorPickerView
version to 2.1.9
.You can check the detailed release note here.
🎉 Released a new version 2.0.2
! 🎉
2.1.8
internally.🎉 Released a new version 2.0.1
! 🎉
ColorPickerView
dependency as 2.1.7
internally.attachAlphaSlideBar
and attachBrightnessSlideBar
attributes for showing or not alpha & brightness sidebars.colorBox_radius
attribute for customizing the shape of the color box in the preferences.preferenceColorListener
for listening to the changing of the chosen color.colorPickerDialogBuilder()
method for setting a customized builder.getDialogBuilder()
method for getting a customized builder.Herer is an example for customizing ColorPickerView
's flag view and adding preferenceColorListener
.
val colorPickerPreferenceBackground = findPreference<ColorPickerPreference>(
requireContext().getString(R.string.BackgroundColorPickerPreference))
colorPickerPreferenceBackground?.getColorPickerView()?.flagView = CustomFlag(requireContext(), R.layout.layout_flag)
colorPickerPreferenceBackground?.preferenceColorListener = ColorEnvelopeListener { envelope, _ ->
Toast.makeText(requireContext(), "background color: #${envelope.hexCode} is selected", Toast.LENGTH_SHORT).show()
}
Migrating to AndroidX