Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android PreferenceScreen "color picker" implementation

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?

like image 386
Michal Avatar asked Jan 13 '13 12:01

Michal


4 Answers

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

like image 76
Martin Stone Avatar answered Nov 16 '22 06:11

Martin Stone


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

like image 20
Dixit Patel Avatar answered Sep 27 '22 18:09

Dixit Patel


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.

like image 21
Simone Pessotto Avatar answered Nov 16 '22 06:11

Simone Pessotto


you may check this:

ColorPickerCollection

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

like image 24
MBH Avatar answered Nov 16 '22 06:11

MBH