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
  • 21,519
  • 75
  • 241
  • 416
Kleptine
  • 5,089
  • 16
  • 58
  • 81

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
  • 8,084
  • 8
  • 48
  • 62
Mark B
  • 183,023
  • 24
  • 297
  • 295
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
  • 833
  • 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 – gsgx 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,796
  • 4
  • 21
  • 33
4

You can use CommonsWare's cwac-colormixer.

It's an android library now! :)

Macarse
  • 91,829
  • 44
  • 175
  • 230
3

A rather advanced one from OI Flashlight is here.

yanchenko
  • 56,576
  • 33
  • 147
  • 165