Skip to content

app:default_color documentation #31

@fmccown

Description

@fmccown

The documentation is missing a default value (app:default_color), so users may not know how to specify one. Example:

  <com.skydoves.colorpickerpreference.ColorPickerPreference
    android:key="@string/BackgroundColorPickerPreference"
    android:summary="changes background color"
    android:title="Background Color"
    app:default_color="@color/md_yellow_A700"
    app:iconSpaceReserved="false"
    app:preference_dialog_negative="@string/cancel"
    app:preference_dialog_positive="@string/confirm"
    app:preference_dialog_title="Background ColorPickerDialog"
    app:preference_selector="@drawable/wheel" />

On a side note, preferences usually use app:defaultValue to specify a default value. It would be a good idea to be consistent and do the same. You may also want to use camelCasing for your attributes.

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