ColorPicker icon indicating copy to clipboard operation
ColorPicker copied to clipboard

setAlphaSliderVisible() bug fixed

Open mianaliasjad opened this issue 4 years ago • 0 comments

I have fixed issue with a scenario:

in XML make app:cpv_alphaChannelVisible="false" and in code on button click colorPickerView.setAlphaSliderVisible(true); it was not showing alpha slider becasue onSizeChanged(int w, int h, int oldw, int oldh) was not gettlng called after requestLayout();

so i have moved code from onSizeChanged(int w, int h, int oldw, int oldh) to onLayout(boolean changed, int left, int top, int right, int bottom). Also created a simple getter method to check if Alpha slider is visible or not.

mianaliasjad avatar May 02 '20 07:05 mianaliasjad