Java Code Examples for com.flask.colorpicker.builder.ColorPickerDialogBuilder#lightnessSliderOnly()
The following examples show how to use
com.flask.colorpicker.builder.ColorPickerDialogBuilder#lightnessSliderOnly() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ColorPickerPreference.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
@Override protected void onClick() { ColorPickerDialogBuilder builder = ColorPickerDialogBuilder .with(getContext()) .setTitle(pickerTitle) .initialColor(selectedColor) .wheelType(wheelType) .density(density) .setPositiveButton(pickerButtonOk, new ColorPickerClickListener() { @Override public void onClick(DialogInterface dialog, int selectedColorFromPicker, Integer[] allColors) { setValue(selectedColorFromPicker); } }) .setNegativeButton(pickerButtonCancel, null); if (!alphaSlider && !lightSlider) builder.noSliders(); else if (!alphaSlider) builder.lightnessSliderOnly(); else if (!lightSlider) builder.alphaSliderOnly(); builder .build() .show(); }
Example 2
Source File: ColorPickerPreference.java From timecat with Apache License 2.0 | 6 votes |
@Override protected void onClick() { ColorPickerDialogBuilder builder = ColorPickerDialogBuilder .with(getContext()) .setTitle(pickerTitle) .initialColor(selectedColor) .wheelType(wheelType) .density(density) .setPositiveButton(pickerButtonOk, new ColorPickerClickListener() { @Override public void onClick(DialogInterface dialog, int selectedColorFromPicker, Integer[] allColors) { setValue(selectedColorFromPicker); } }) .setNegativeButton(pickerButtonCancel, null); if (!alphaSlider && !lightSlider) builder.noSliders(); else if (!alphaSlider) builder.lightnessSliderOnly(); else if (!lightSlider) builder.alphaSliderOnly(); builder .build() .show(); }
Example 3
Source File: ColorPickerPreference.java From javaide with GNU General Public License v3.0 | 6 votes |
@Override protected void onClick() { ColorPickerDialogBuilder builder = ColorPickerDialogBuilder .with(getContext()) .setTitle(pickerTitle) .initialColor(selectedColor) .wheelType(wheelType) .density(density) .setPositiveButton(pickerButtonOk, new ColorPickerClickListener() { @Override public void onClick(DialogInterface dialog, int selectedColorFromPicker, Integer[] allColors) { setValue(selectedColorFromPicker); } }) .setNegativeButton(pickerButtonCancel, null); if (!alphaSlider && !lightSlider) builder.noSliders(); else if (!alphaSlider) builder.lightnessSliderOnly(); else if (!lightSlider) builder.alphaSliderOnly(); builder .build() .show(); }
Example 4
Source File: ColorPickerPreference.java From openlauncher with Apache License 2.0 | 6 votes |
@Override protected void onClick() { ColorPickerDialogBuilder builder = ColorPickerDialogBuilder .with(getContext()) .setTitle(pickerTitle) .initialColor(selectedColor) .showBorder(border) .wheelType(wheelType) .density(density) .showColorEdit(pickerColorEdit) .setPositiveButton(pickerButtonOk, new ColorPickerClickListener() { @Override public void onClick(DialogInterface dialog, int selectedColorFromPicker, Integer[] allColors) { setValue(selectedColorFromPicker); } }) .setNegativeButton(pickerButtonCancel, null); if (!alphaSlider && !lightSlider) builder.noSliders(); else if (!alphaSlider) builder.lightnessSliderOnly(); else if (!lightSlider) builder.alphaSliderOnly(); builder .build() .show(); }
Example 5
Source File: ColorPickerPreference.java From droidddle with Apache License 2.0 | 6 votes |
@Override protected void onClick() { ColorPickerDialogBuilder builder = ColorPickerDialogBuilder .with(getContext()) .setTitle(pickerTitle) .initialColor(selectedColor) .wheelType(wheelType) .density(density) .setPositiveButton(pickerButtonOk, new ColorPickerClickListener() { @Override public void onClick(DialogInterface dialog, int selectedColorFromPicker, Integer[] allColors) { setValue(selectedColorFromPicker); } }) .setNegativeButton(pickerButtonCancel, null); if (!alphaSlider && !lightSlider) builder.noSliders(); else if (!alphaSlider) builder.lightnessSliderOnly(); else if (!lightSlider) builder.alphaSliderOnly(); builder .build() .show(); }