How to Add a SeekBar, in XML

How to Add a SeekBar, in XML

SeekBar was added in API Level 1
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.
The default SeekBar is a wide bar.

1. Create an Android project, if you don't already have one.

2. In the main.xml file, add the below code after your layout tags.

<SeekBar
             android:layout_width="fill_parent"
             android:layout_height="wrap_content"
/>

3. Compile and run!

Next Recommended Article: Name a SeekBar

Related Articles:

Resources:
http://developer.android.com/reference/android/widget/SeekBar.html
www.androidhive.info/2012/03/android-building-audio-player-tutorial/