Android
android.widget
public class

android.widget.SeekBar

java.lang.Object
android.view.View Drawable.Callback KeyEvent.Callback
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. be notified of the user's actions. Clients of the Seekbar can attach a SeekBar.OnSeekBarChangeListener to

Nested Classes
SeekBar.OnSeekBarChangeListener A callback that notifies clients when the progress level has been changed. 

Summary

XML Attributes

Attribute name Related methods  
android:thumb   Draws the thumb on a seekbar

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name". 

XML Attributes inherited from class android.widget.ProgressBar
XML Attributes inherited from class android.view.View
Constants inherited from class android.view.View
Fields inherited from class android.view.View

Public Constructors

            SeekBar(Context context)
            SeekBar(Context context, AttributeSet attrs)
            SeekBar(Context context, AttributeSet attrs, int defStyle)

Public Methods

          void  setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener l)
Sets a listener to receive notifications of changes to the SeekBar's progress level.
Methods inherited from class android.widget.AbsSeekBar
Methods inherited from class android.widget.ProgressBar
Methods inherited from class android.view.View
Methods inherited from class java.lang.Object
Methods inherited from interface android.graphics.drawable.Drawable.Callback
Methods inherited from interface android.view.KeyEvent.Callback

Details

XML Attributes

android:thumb

Draws the thumb on a seekbar

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

This corresponds to the global attribute resource symbol thumb.

Related Methods

Public Constructors

public SeekBar(Context context)

public SeekBar(Context context, AttributeSet attrs)

public SeekBar(Context context, AttributeSet attrs, int defStyle)

Public Methods

public void setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener l)

Sets a listener to receive notifications of changes to the SeekBar's progress level. Also provides notifications of when the user starts and stops a touch gesture within the SeekBar.

Parameters

l The seek bar notification listener
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48