public class AlphaView extends AbstractSliderView
Modifier and Type | Class and Description |
---|---|
static interface |
AlphaView.OnAlphaChangedListener |
colorRange, density, finderBitmap, stage
Constructor and Description |
---|
AlphaView(Context context) |
AlphaView(Context context,
AttributeSet attrs) |
AlphaView(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
int |
getAlphaSelection() |
protected void |
onDraw(Canvas canvas) |
protected void |
onProgressChange(float progress) |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
setAlphaSelection(int alpha,
boolean triggerListener) |
void |
setColor(int color) |
void |
setListener(AlphaView.OnAlphaChangedListener listener) |
drawFinder, finalize, onTouchEvent
public AlphaView(Context context)
public AlphaView(Context context, AttributeSet attrs)
public AlphaView(Context context, AttributeSet attrs, int defStyleAttr)
public int getAlphaSelection()
protected void onDraw(@NonNull Canvas canvas)
protected void onProgressChange(float progress)
onProgressChange
in class AbstractSliderView
protected void onSizeChanged(int w, int h, int oldw, int oldh)
onSizeChanged
in class AbstractSliderView
public void setAlphaSelection(int alpha, boolean triggerListener)
public void setColor(int color)
public void setListener(AlphaView.OnAlphaChangedListener listener)