public class SeekBar
extends AppCompatSeekBar
SeekBar in order to provide
a getter method, which allows to retrieve the seek bar's thumb on API versions less than 16.
Furthermore, a setter method, which allows to set the seek bar's seekBarColor is provided.| Constructor and Description |
|---|
SeekBar(android.content.Context context)
Creates a new seek bar.
|
SeekBar(android.content.Context context,
android.util.AttributeSet attributeSet)
Creates a new seek bar.
|
SeekBar(android.content.Context context,
android.util.AttributeSet attributeSet,
int defaultStyle)
Creates a new seek bar.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSeekBarColor()
Returns the color of the seek bar.
|
android.graphics.drawable.Drawable |
getThumbDrawable()
Returns the drawable, which is used to visualize the seek bar's thumb.
|
void |
setSeekBarColor(int color)
Sets the color of the seek bar.
|
void |
setThumb(android.graphics.drawable.Drawable thumb) |
public SeekBar(android.content.Context context)
context - The context, which should be used by the seek bar, as an instance of the class Context. The context may not be nullpublic SeekBar(android.content.Context context,
android.util.AttributeSet attributeSet)
context - The context, which should be used by the seek bar, as an instance of the class Context. The context may not be nullattributeSet - The attributes of the XML tag that is inflating the view, as an instance of the type
AttributeSet or null, if no attributes are availablepublic SeekBar(android.content.Context context,
android.util.AttributeSet attributeSet,
int defaultStyle)
context - The context, which should be used by the seek bar, as an instance of the class Context. The context may not be nullattributeSet - The attributes of the XML tag that is inflating the view, as an instance of the type
AttributeSet or null, if no attributes are availabledefaultStyle - The default style to apply to this view. If 0, no style will be applied (beyond what
is included in the theme). This may either be an attribute resource, whose value will
be retrieved from the current theme, or an explicit style resourcepublic final int getSeekBarColor()
Integer valuepublic final void setSeekBarColor(int color)
color - The color, which should be set as an Integer valuepublic final android.graphics.drawable.Drawable getThumbDrawable()
Drawablepublic final void setThumb(android.graphics.drawable.Drawable thumb)