Angrybambr
Angrybambr

Reputation: 220

How do I use devmil-android-color-picker?

I need to use some color picker in my application, so I searched google and found devmil-android-color-picker, but I don't understand how to use it in my application. Can someone give me a short example of its usage or suggest a good alternative?

Upvotes: 1

Views: 811

Answers (1)

Angrybambr
Angrybambr

Reputation: 220

I'll answer myself =) I connected with author and he helped me with right answer: Simple example: It works for me:

    ColorSelectorDialog dlg = new ColorSelectorDialog(this,
            new ColorSelectorDialog.OnColorChangedListener() {
        public void colorChanged(int color) {
            System.out.println("The new color is: " + color);
        }
    }, colorCurrent);
    dlg.setTitle("Select new color");
    dlg.show();

Upvotes: 4

Related Questions