public class AdjustSlider
extends TextView
Modifier and Type | Class and Description |
---|---|
static interface |
AdjustSlider.AdjustBarChangeListener
A callback that notifies clients when the progress level has been
changed.
|
Constructor and Description |
---|
AdjustSlider(Context context) |
AdjustSlider(Context context,
AttributeSet attrs) |
AdjustSlider(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatchDraw(Canvas canvas) |
protected void |
drawDots(Canvas canvas,
float y,
float length,
float angle) |
float |
getMax() |
float |
getMin() |
float |
getValue() |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
boolean |
onTouchEvent(MotionEvent rawEvent) |
void |
setChangeListener(AdjustSlider.AdjustBarChangeListener listener) |
void |
setMax(float max) |
void |
setMin(float min) |
void |
setValue(float value) |
protected void |
setValue(float value,
boolean fromUser) |
protected void |
updateLabel() |
public AdjustSlider(Context context)
public AdjustSlider(Context context, AttributeSet attrs)
public AdjustSlider(Context context, AttributeSet attrs, int defStyleAttr)
protected void dispatchDraw(Canvas canvas)
protected void drawDots(Canvas canvas, float y, float length, float angle)
public float getMax()
public float getMin()
public float getValue()
protected void onSizeChanged(int w, int h, int oldw, int oldh)
public boolean onTouchEvent(MotionEvent rawEvent)
public void setChangeListener(AdjustSlider.AdjustBarChangeListener listener)
public void setMax(float max)
public void setMin(float min)
public void setValue(float value)
protected void setValue(float value, boolean fromUser)
protected void updateLabel()