public abstract static class AbsSeekBar.NumericTransformer extends Object
This will be used on the floating bubble to display a different value if needed.
Using this in conjunction with AbsSeekBar.setIndicatorFormatter(String) you will be able to manipulate the
value seen by the user
| 构造器和说明 |
|---|
NumericTransformer() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract int |
transform(int value)
Return the desired value to be shown to the user.
|
String |
transformToString(int value)
Return the desired value to be shown to the user.
|
boolean |
useStringTransform()
Used to indicate which transform will be used.
|
public abstract int transform(int value)
AbsSeekBar.setIndicatorFormatter(java.lang.String) before displaying itvalue - The value to be transformedpublic String transformToString(int value)
value - The value to be transformedpublic boolean useStringTransform()
transformToString(int) will be used, otherwise transform(int)
will be used