60

Does anyone know of a quick color picker widget that I could grab to use in my application?

I've seen one in a few different applications that have a wheel with colors, and that you tap in the center to select, but I'm not sure where to find it.

Any color picker would be fine though.

Alexander Farber
  • 19,827
  • 73
  • 224
  • 393
Kleptine
  • 5,101
  • 15
  • 56
  • 79

5 Answers5

51

The wheel color picker that you are talking about is in the API Demos.

https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/graphics/ColorPickerDialog.java

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Mark B
  • 157,487
  • 23
  • 275
  • 266
23

Created ColorPickerPreference to use in preferences. Used above submitted color-picker-view can find it here: https://github.com/attenzione/android-ColorPickerPreference

Also will share similar ColorPickerPreference with Rotary Picker (used it before)

Attenzione
  • 823
  • 9
  • 12
  • Thanks for this - imo it's the perfect combination of ease-of-use and flexibility (i.e. optional alpha slider.) Works great for choosing some colors for a graph interface, since my code can utilize alpha values. – tmandry Jun 16 '11 at 21:48
  • 2
    Making this work with HoloEverywhere wasn't a completely straight forward process, so I have a fork of this library that works with it: https://github.com/gsingh93/android-ColorPickerPreference – gsingh2011 Dec 14 '12 at 05:22
  • As someone new to Android Development - is there an installation guide somewhere? Do I just copy and paste these files into my project? – Howdy_McGee Feb 12 '13 at 21:32
20

This one from Yuku ( http://code.google.com/p/android-color-picker/ ) is really kewl. It's open source under Apache license, and is much nicer than the Android sample one. It's also a library project, so it's really simple to integrate. I've just added it last week to DigiClock widget, and so far my users are impressed!

DavidG
  • 1,755
  • 4
  • 21
  • 33
4

You can use CommonsWare's cwac-colormixer.

It's an android library now! :)

Macarse
  • 89,619
  • 44
  • 170
  • 229
3

A rather advanced one from OI Flashlight is here.

yanchenko
  • 55,355
  • 33
  • 144
  • 163