public class ImgLyFloatSlider
extends RelativeLayout
Modifier and Type | Class and Description |
---|---|
static interface |
ImgLyFloatSlider.OnSeekBarChangeListener
A callback that notifies clients when the progress level has been
changed.
|
Constructor and Description |
---|
ImgLyFloatSlider(Context context) |
ImgLyFloatSlider(Context context,
AttributeSet attrs) |
ImgLyFloatSlider(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
static int |
convertFromRange(float value,
float minValue,
float maxValue,
int steps) |
static float |
convertToRange(int value,
float minValue,
float maxValue,
int steps) |
float |
getMax() |
float |
getMin() |
float |
getPercentageProgress()
Get the Progress in percent.
|
int |
getSteps() |
float |
getValue() |
void |
onProgressChanged(SeekBar seekBar,
int progress,
boolean fromUser) |
void |
onStartTrackingTouch(SeekBar seekBar) |
void |
onStopTrackingTouch(SeekBar seekBar) |
boolean |
onTouchEvent(MotionEvent event) |
void |
setMax(float max) |
void |
setMin(float min) |
void |
setOnSeekBarChangeListener(ImgLyFloatSlider.OnSeekBarChangeListener listener) |
void |
setPercentageProgress(float percent)
Set the Progress in percent.
|
void |
setSteps(int steps) |
void |
setValue(float value) |
public ImgLyFloatSlider(Context context)
public ImgLyFloatSlider(Context context, AttributeSet attrs)
public ImgLyFloatSlider(Context context, AttributeSet attrs, int defStyleAttr)
public static int convertFromRange(float value, float minValue, float maxValue, int steps)
public static float convertToRange(int value, float minValue, float maxValue, int steps)
public float getMax()
public float getMin()
public float getPercentageProgress()
public int getSteps()
public float getValue()
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)
public void onStartTrackingTouch(SeekBar seekBar)
public void onStopTrackingTouch(SeekBar seekBar)
public boolean onTouchEvent(MotionEvent event)
public void setMax(float max)
public void setMin(float min)
public void setOnSeekBarChangeListener(ImgLyFloatSlider.OnSeekBarChangeListener listener)
public void setPercentageProgress(float percent)
percent
- progress in percent from 0.0 to 1.0public void setSteps(int steps)
public void setValue(float value)