Search in sources :

Example 1 with CustomColorPicker

use of com.simplecity.amp_library.ui.views.CustomColorPicker in project Shuttle by timusus.

the class DialogUtils method showCustomColorPickerDialog.

public static void showCustomColorPickerDialog(Context context, int selectedColor, ColorSelectionListener listener) {
    CustomColorPicker customColorPicker = new CustomColorPicker(context, selectedColor);
    getBuilder(context).title(context.getString(R.string.color_pick)).negativeText(R.string.cancel).positiveText(R.string.button_done).onPositive((d, which) -> listener.colorSelected(customColorPicker.color)).customView(customColorPicker, false).show();
}
Also used : CustomColorPicker(com.simplecity.amp_library.ui.views.CustomColorPicker)

Aggregations

CustomColorPicker (com.simplecity.amp_library.ui.views.CustomColorPicker)1