完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/AbsSeekBar.html
AbsSeekBar
public abstract class AbsSeekBar
extends ProgressBar
java.lang.Object | |||
↳ | android.view.View | ||
↳ | android.widget.ProgressBar | ||
↳ | android.widget.AbsSeekBar |
AbsSeekBar extends the capabilities of ProgressBar by adding a draggable thumb.
AbsSeekBar通过添加一个可拖动的滑块来扩展ProgressBar的功能。
摘要
XML属性 | |
---|---|
android:thumbTint | 滑块drawable的tint。 |
android:thumbTintMode | 混合模式,用于滑块着色。 |
android:tickMarkTint | 用于刻度线drawable的tint。 |
android:tickMarkTintMode | 混合模式,用于刻度线着色。 |
继承XML属性 | |
---|---|
From class android.widget.ProgressBar
| |
From class android.view.View
|
继承常量 |
---|
From class android.view.View
|
继承字段 |
---|
From class android.view.View
|
Public构造方法 | |
---|---|
AbsSeekBar(Context context) | |
AbsSeekBar(Context context, AttributeSet attrs) | |
AbsSeekBar(Context context, AttributeSet attrs, int defStyleAttr) | |
AbsSeekBar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) |
Public方法 | |
---|---|
void | drawableHotspotChanged(float x, float y) This function is called whenever the view hotspot changes and needs to be propagated to drawables or child views managed by the view. |
CharSequence | getAccessibilityClassName() Return the class name of this object to be used for accessibility purposes. |
int | getKeyProgressIncrement() Returns the amount of progress changed via the arrow keys. |
boolean | getSplitTrack() Returns whether the track should be split by the thumb. |
Drawable | getThumb() Return the drawable used to represent the scroll thumb - the component that the user can drag back and forth indicating the current value by its position. |
int | getThumbOffset() |
ColorStateList | getThumbTintList() Returns the tint applied to the thumb drawable, if specified. |
PorterDuff.Mode | getThumbTintMode() Returns the blending mode used to apply the tint to the thumb drawable, if specified. |
Drawable | getTickMark() |
ColorStateList | getTickMarkTintList() Returns the tint applied to the tick mark drawable, if specified. |
PorterDuff.Mode | getTickMarkTintMode() Returns the blending mode used to apply the tint to the tick mark drawable, if specified. |
void | jumpDrawablesToCurrentState() Call |
boolean | onKeyDown(int keyCode, KeyEvent event) Default implementation of |
void | onRtlPropertiesChanged(int layoutDirection) Called when any RTL property (layout direction or text direction or text alignment) has been changed. |
boolean | onTouchEvent(MotionEvent event) Implement this method to handle touch screen motion events. |
void | setKeyProgressIncrement(int increment) Sets the amount of progress changed via the arrow keys. |
void | setMax(int max) Set the upper range of the progress bar max. |
void | setMin(int min) Set the lower range of the progress bar to min. |
void | setSplitTrack(boolean splitTrack) Specifies whether the track should be split by the thumb. |
void | setThumb(Drawable thumb) Sets the thumb that will be drawn at the end of the progress meter within the SeekBar. |
void | setThumbOffset(int thumbOffset) Sets the thumb offset that allows the thumb to extend out of the range of the track. |
void | setThumbTintList(ColorStateList tint) Applies a tint to the thumb drawable. |
void | setThumbTintMode(PorterDuff.Mode tintMode) Specifies the blending mode used to apply the tint specified by |
void | setTickMark(Drawable tickMark) Sets the drawable displayed at each progress position, e.g. |
void | setTickMarkTintList(ColorStateList tint) Applies a tint to the tick mark drawable. |
void | setTickMarkTintMode(PorterDuff.Mode tintMode) Specifies the blending mode used to apply the tint specified by |
保护方法
完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/AbsSeekBar.html