Android PreferenceScreen "color picker" implementation

14,584

Solution 1

I tried this one:

  1. mColorPicker

  2. mColorPicker2

It is very easy to use. You can download the code and see an example.

This is how it looks:

enter image description here

Solution 2

Too late for the original questioner I expect, but here's the library I wrote after not finding what I needed here. It can be used like this:

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <com.rarepebble.colorpicker.ColorPreference
        android:key="myColor"
        android:title="@string/pref_title"
        android:defaultValue="#f00"
        />
</PreferenceScreen>

More info here:

HSV-Alpha Color Picker for Android (GitHub).

HSV-Alpha Color Picker Demo (Google Play).

I hope it's useful for somebody else.

ColorPreference Color Picker

Solution 3

If someone is looking for a great new android color picker that use material design I have forked an great project from github and made a simple-to-use android color picker dialog.

This is the project: Android Color Picker

Android Color Picker Example

It's easy to implement by yourself. There is a complete android studio project ready to download for see how it works.

Solution 4

you may check this:

ColorPickerCollection

If you want to let user choose on out of set of colors, you can use the ColorPickerCollection library.

Share:
14,584
Michal
Author by

Michal

Not :)

Updated on June 19, 2022

Comments

  • Michal
    Michal about 2 years

    can someone help me? I need implement some color picker to preference screen (live wallpaper settings). Is there any solution out there, some open source?

  • Steve C.
    Steve C. almost 11 years
    How would I apply the integer in an OpenGL live wallpaper? I looked over the demo but can't figure it out. Thank you
  • Sinisa
    Sinisa about 8 years
    Exactly what i was looking for. Plus it took around a minute to implement.
  • Oscar Josue Alvrez
    Oscar Josue Alvrez over 7 years
    Fast and easy to implement :)