Android PreferenceScreen "color picker" implementation
Solution 1
I tried this one:
It is very easy to use. You can download the code and see an example.
This is how it looks:
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.
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
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:
If you want to let user choose on out of set of colors, you can use the ColorPickerCollection library.
![Michal](https://i.stack.imgur.com/qiLdI.jpg?s=256&g=1)
Comments
-
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. almost 11 yearsHow would I apply the integer in an OpenGL live wallpaper? I looked over the demo but can't figure it out. Thank you
-
Sinisa about 8 yearsExactly what i was looking for. Plus it took around a minute to implement.
-
Oscar Josue Alvrez over 7 yearsFast and easy to implement :)