完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/SeekBar.html
SeekBar
public class SeekBar
extends AbsSeekBar
java.lang.Object | ||||
↳ | android.view.View | |||
↳ | android.widget.ProgressBar | |||
↳ | android.widget.AbsSeekBar | |||
↳ | android.widget.SeekBar |
A SeekBar is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys. Placing focusable widgets to the left or right of a SeekBar is discouraged.
SeekBar是ProgressBar的一个扩展,其加入了一个可拖动的滑块。用户可以触摸滑块,向左或向右拖动,或者使用箭头键来设置当前的进度。不推荐在一个SeekBar的左边或右边放置可获得焦点的控件。
Clients of the SeekBar can attach a SeekBar.OnSeekBarChangeListener
to be notified of the user's actions.
SeekBar的使用者可以附加一个SeekBar.OnSeekBarChangeListener
来通知用户的操作。
摘要
嵌套类 | |
---|---|
interface | SeekBar.OnSeekBarChangeListener A callback that notifies clients when the progress level has been changed. |
XML属性 | |
---|---|
android:thumb | seekbar中的滑块。 |
继承XML属性 | |
---|---|
From class android.widget.AbsSeekBar
| |
From class android.widget.ProgressBar
| |
From class android.view.View
|
继承常量 |
---|
From class android.view.View
|
继承字段 |
---|
From class android.view.View
|
Public构造方法 | |
---|---|
SeekBar(Context context) | |
SeekBar(Context context, AttributeSet attrs) | |
SeekBar(Context context, AttributeSet attrs, int defStyleAttr) | |
SeekBar(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) |
Public方法 | |
---|---|
CharSequence | getAccessibilityClassName() Return the class name of this object to be used for accessibility purposes. |
void | setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener l) Sets a listener to receive notifications of changes to the SeekBar's progress level. |
继承方法 | |
---|---|
From class android.widget.AbsSeekBar
| |
From class android.widget.ProgressBar
| |
From class android.view.View
| |
From class java.lang.Object
| |
From interface android.graphics.drawable.Drawable.Callback
| |
From interface android.view.KeyEvent.Callback
| |
From interface android.view.accessibility.AccessibilityEventSource
|
XML属性
android:thumb
Draws the thumb on a seekbar.
seekbar中的滑块。