public class SeekSlider extends ImgLyUIView
Modifier and Type | Class and Description |
---|---|
static interface |
SeekSlider.OnSeekBarChangeListener
Callback listener interface to notify about changed range values.
|
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_POINTER_INDEX_MASK |
static int |
ACTION_POINTER_INDEX_SHIFT |
static int |
INVALID_POINTER_ID
An invalid pointer id.
|
isAttached, showState, uiDensity, willDrawUi
Constructor and Description |
---|
SeekSlider(Context context) |
SeekSlider(Context context,
AttributeSet attrs) |
SeekSlider(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
static Bitmap |
drawDrawable(Drawable drawable) |
protected void |
finalize() |
float |
getPercentageProgress() |
float |
getValue()
Get the value of seekbar
|
protected void |
onDraw(Canvas canvas) |
protected void |
onMeasure(int widthMeasureSpec,
int heightMeasureSpec) |
boolean |
onTouchEvent(MotionEvent event) |
void |
setAbsoluteMinMaxValue(float absoluteMinValue,
float absoluteMaxValue) |
void |
setMax(float absoluteMaxValue) |
void |
setMin(float absoluteMinValue) |
void |
setOnSeekBarChangeListener(SeekSlider.OnSeekBarChangeListener listener)
Registers given listener callback to notify about changed selected
values.
|
void |
setPercentageProgress(float value) |
void |
setSteps(int steps) |
void |
setValue(float value)
Sets value of seekbar to the given value
|
getStateHandler, onAttachedToUI, onAttachedToWindow, onDetachedFromUI, onDetachedFromWindow, onDrawUI, postInvalidateUi, setWillDrawUi
public static final int ACTION_POINTER_INDEX_MASK
public static final int ACTION_POINTER_INDEX_SHIFT
public static final int INVALID_POINTER_ID
public SeekSlider(Context context)
public SeekSlider(Context context, AttributeSet attrs)
public SeekSlider(Context context, AttributeSet attrs, int defStyleAttr)
public static Bitmap drawDrawable(Drawable drawable)
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
public float getPercentageProgress()
public float getValue()
protected void onDraw(Canvas canvas)
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
public boolean onTouchEvent(MotionEvent event)
public void setAbsoluteMinMaxValue(float absoluteMinValue, float absoluteMaxValue)
public void setMax(float absoluteMaxValue)
public void setMin(float absoluteMinValue)
public void setOnSeekBarChangeListener(SeekSlider.OnSeekBarChangeListener listener)
listener
- The listener to notify about changed selected values.public void setPercentageProgress(float value)
public void setSteps(int steps)
public void setValue(float value)
value
- The new value to set