public abstract class AbsSeekBar extends ProgressBar
java.lang.Object ↳android.view.View ↳android.widget.ProgressBar ↳android.widget.AbsSeekBar 已知的直接子类 RatingBar, SeekBar 已知的间接子类 AppCompatRatingBar, AppCompatSeekBarAbsSeekBar extends the capabilities of ProgressBar by adding a draggable thumb. AbsSeekBar通过添加一个可拖动的滑块来扩展ProgressBar的功能。
This function is called whenever the view hotspot changes and needs to be propagated to drawables or child views managed by the view. 每当视图热点发生改变时,调用此方法,并需要传播到由视图管理的drawable或子视图。
CharSequencegetAccessibilityClassName()Return the class name of this object to be used for accessibility purposes. 返回此对象的类名,用于辅助功能目的。
intgetKeyProgressIncrement()Returns the amount of progress changed via the arrow keys. 返回通过箭头键改变的进度数。
booleangetSplitTrack()Returns whether the track should be split by the thumb. 返回轨道是否由滑块来分割。
DrawablegetThumb()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. 返回drawable,其用于呈现滑动滑块-用户可以通过向前或向后拖动它来显示当前的值。
intgetThumbOffset() ColorStateListgetThumbTintList()Returns the tint applied to the thumb drawable, if specified. 返回tint,其用于滑块的drawable,如果提供。
PorterDuff.ModegetThumbTintMode()Returns the blending mode used to apply the tint to the thumb drawable, if specified. 返回混合模式,其用于对滑块drawable的着色,如果提供。
DrawablegetTickMark() ColorStateListgetTickMarkTintList()Returns the tint applied to the tick mark drawable, if specified. 返回tint,其用于刻度线的drawable,如果提供。
PorterDuff.ModegetTickMarkTintMode()Returns the blending mode used to apply the tint to the tick mark drawable, if specified. 返回混合模式,其用于对刻度线drawable的着色,如果提供。
voidjumpDrawablesToCurrentState()Call Drawable.jumpToCurrentState() on all Drawable objects associated with this view. 在与此视图关联的所有drawable对象上,调用Drawable.jumpToCurrentState()。
booleanonKeyDown(int keyCode, KeyEvent event)Default implementation of KeyEvent.Callback.onKeyDown(): perform press of the view when KEYCODE_DPAD_CENTER or KEYCODE_ENTER is released, if the view is enabled and clickable. KeyEvent.Callback.onKeyDown()的默认实现;如果view是使能的并且可点击,则当KEYCODE_DPAD_CENTER或KEYCODE_ENTER释放后,执行此视图的按键按下事件。
voidonRtlPropertiesChanged(int layoutDirection)Called when any RTL property (layout direction or text direction or text alignment) has been changed. 在任何从左到右(RTL)属性 (布局方向或文本方向或文本对齐方式) 已更改时调用。
booleanonTouchEvent(MotionEvent event)Implement this method to handle touch screen motion events. 实现此方法,以处理触摸屏的MotionEvent。
voidsetKeyProgressIncrement(int increment)Sets the amount of progress changed via the arrow keys. 设置通过箭头键改变的进度数。
voidsetMax(int max)Set the upper range of the progress bar max. 设置进度条的最大范围。 max。
voidsetMin(int min)Set the lower range of the progress bar to min. 设置进度条的最低范围的最小值。 min。
voidsetSplitTrack(boolean splitTrack)Specifies whether the track should be split by the thumb. 设置轨道是否由滑块来分割。
voidsetThumb(Drawable thumb)Sets the thumb that will be drawn at the end of the progress meter within the SeekBar. 设置滑块,其绘制在SeekBar进度条的末端。
voidsetThumbOffset(int thumbOffset)Sets the thumb offset that allows the thumb to extend out of the range of the track. 设置滑块的偏移,其允许滑块可以延伸到轨道的范围外。
voidsetThumbTintList(ColorStateList tint)Applies a tint to the thumb drawable. 滑块drawable的tint。
voidsetThumbTintMode(PorterDuff.Mode tintMode)Specifies the blending mode used to apply the tint specified by setThumbTintList(ColorStateList)} to the thumb drawable. 设置混合模式,用于由setThumbTintList(ColorStateList)指定的滑块drawable的着色。
voidsetTickMark(Drawable tickMark)Sets the drawable displayed at each progress position, e.g. 设置drawable,其显示在刻度的每个位置。
voidsetTickMarkTintList(ColorStateList tint)Applies a tint to the tick mark drawable. 用于刻度线的drawable的tint。
voidsetTickMarkTintMode(PorterDuff.Mode tintMode)Specifies the blending mode used to apply the tint specified by setTickMarkTintList(ColorStateList)} to the tick mark drawable. 设置混合模式,用于由setTickMarkTintList(ColorStateList)指定的刻度线drawable的着色。
完整内容,请参考:http://www.zhdoc.net/android/reference/android/widget/AbsSeekBar.html
