Skip to content

Preview color always black #34

@ronenfe

Description

@ronenfe

<com.skydoves.colorpickerpreference.ColorPickerPreference
app:key="day_speed_color_picker"
app:title="Dial color for day theme"
app:summary="Choose your color"
app:enabled="true"
app:defaultValue="#FF9999"
app:preference_attachAlphaSlideBar="true"
app:preference_attachBrightnessSlideBar="true"
app:preference_colorBox_radius="26dp"
app:preference_dialog_title="Select Color"
app:preference_dialog_positive="OK"
app:preference_dialog_negative="Cancel" />

I put this in pref xml.

the preview color always stays black.
Also no change event fired when changing the color
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String?) {
when (key) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions