com.flask.colorpicker.slider.LightnessSlider Java Examples
The following examples show how to use
com.flask.colorpicker.slider.LightnessSlider.
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: ColorPickerView.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (alphaSliderViewId != 0) setAlphaSlider((AlphaSlider) getRootView().findViewById(alphaSliderViewId)); if (lightnessSliderViewId != 0) setLightnessSlider((LightnessSlider) getRootView().findViewById(lightnessSliderViewId)); updateColorWheel(); currentColorCircle = findNearestByColor(initialColor); }
Example #2
Source File: ColorPickerView.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
public void setLightnessSlider(LightnessSlider lightnessSlider) { this.lightnessSlider = lightnessSlider; if (lightnessSlider != null) { this.lightnessSlider.setColorPicker(this); this.lightnessSlider.setColor(getSelectedColor()); } }
Example #3
Source File: ColorPickerView.java From timecat with Apache License 2.0 | 5 votes |
@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); if (alphaSliderViewId != 0) setAlphaSlider((AlphaSlider) getRootView().findViewById(alphaSliderViewId)); if (lightnessSliderViewId != 0) setLightnessSlider((LightnessSlider) getRootView().findViewById(lightnessSliderViewId)); }
Example #4
Source File: ColorPickerView.java From timecat with Apache License 2.0 | 5 votes |
public void setLightnessSlider(LightnessSlider lightnessSlider) { this.lightnessSlider = lightnessSlider; if (lightnessSlider != null) { this.lightnessSlider.setColorPicker(this); this.lightnessSlider.setColor(getSelectedColor()); } }
Example #5
Source File: ColorPickerView.java From javaide with GNU General Public License v3.0 | 5 votes |
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (alphaSliderViewId != 0) setAlphaSlider((AlphaSlider) getRootView().findViewById(alphaSliderViewId)); if (lightnessSliderViewId != 0) setLightnessSlider((LightnessSlider) getRootView().findViewById(lightnessSliderViewId)); updateColorWheel(); currentColorCircle = findNearestByColor(initialColor); }
Example #6
Source File: ColorPickerView.java From javaide with GNU General Public License v3.0 | 5 votes |
public void setLightnessSlider(LightnessSlider lightnessSlider) { this.lightnessSlider = lightnessSlider; if (lightnessSlider != null) { this.lightnessSlider.setColorPicker(this); this.lightnessSlider.setColor(getSelectedColor()); } }
Example #7
Source File: ColorPickerView.java From openlauncher with Apache License 2.0 | 5 votes |
@Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); if (alphaSliderViewId != 0) setAlphaSlider((AlphaSlider) getRootView().findViewById(alphaSliderViewId)); if (lightnessSliderViewId != 0) setLightnessSlider((LightnessSlider) getRootView().findViewById(lightnessSliderViewId)); updateColorWheel(); currentColorCircle = findNearestByColor(initialColor); }
Example #8
Source File: ColorPickerView.java From openlauncher with Apache License 2.0 | 5 votes |
public void setLightnessSlider(LightnessSlider lightnessSlider) { this.lightnessSlider = lightnessSlider; if (lightnessSlider != null) { this.lightnessSlider.setColorPicker(this); this.lightnessSlider.setColor(getSelectedColor()); } }
Example #9
Source File: ColorPickerView.java From droidddle with Apache License 2.0 | 5 votes |
@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); if (alphaSliderViewId != 0) setAlphaSlider((AlphaSlider) getRootView().findViewById(alphaSliderViewId)); if (lightnessSliderViewId != 0) setLightnessSlider((LightnessSlider) getRootView().findViewById(lightnessSliderViewId)); }
Example #10
Source File: ColorPickerView.java From droidddle with Apache License 2.0 | 5 votes |
public void setLightnessSlider(LightnessSlider lightnessSlider) { this.lightnessSlider = lightnessSlider; if (lightnessSlider != null) { this.lightnessSlider.setColorPicker(this); this.lightnessSlider.setColor(getSelectedColor()); } }