• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How can I make ChiralCode - Android-Color-Picker appear in a dialog window?

I found the following link 'https://github.com/chiralcode/Android-Color-Picker'. I copied `ColorPicker.java' and `ColorPickerDialog.java' . I've been trying to make that dialog box appear somehow .. but I still can't figure it out. If you run the initial app you can see that it has a color picker dialog button (when you press it that window appears). How can I make something like that?

I tried using this(as he says on that website) :

ColorPickerDialog colorPickerDialog = new ColorPickerDialog(this, initialColor, new OnColorSelectedListener() {

@override
public void onColorSelected(int color) {
// do action
}

});
colorPickerDialog.show();

but I get a lot of errors. I only copied those 2 java files, nothing else. Not even the layout or something like that. What else should I copy in order to make it work ? I'm using Android Studio

I've been trying to solve this for a long time .. but however I try I won't get it done. Thank you :D
 
I found the following link 'https://github.com/chiralcode/Android-Color-Picker'. I copied `ColorPicker.java' and `ColorPickerDialog.java' . I've been trying to make that dialog box appear somehow .. but I still can't figure it out. If you run the initial app you can see that it has a color picker dialog button (when you press it that window appears). How can I make something like that?

I tried using this(as he says on that website) :

ColorPickerDialog colorPickerDialog = new ColorPickerDialog(this, initialColor, new OnColorSelectedListener() {

@override
public void onColorSelected(int color) {
// do action
}

});
colorPickerDialog.show();

but I get a lot of errors. I only copied those 2 java files, nothing else. Not even the layout or something like that. What else should I copy in order to make it work ? I'm using Android Studio

I've been trying to solve this for a long time .. but however I try I won't get it done. Thank you :D

Watch this video..It's using similair library for color picking
 
Back
Top Bottom