Android7.0中文API --- AbsSeekBar

完整内容,请参考: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方法

voiddrawableHotspotChanged(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.
每当视图热点发生改变时,调用此方法,并需要传播到由视图管理的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_CENTERKEYCODE_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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值