Android Studio – Android SeekBar Example

In this tutorial we will learn How to use SeekBar  in Android Using Android Studio.

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.

So lets create a project.

Step 1  – Create new Android project and name your project as SeekBarApp.

Step 2 – Add SeekBar and a textView in the main activity as shown in the picture below.

Android SeekBar design





Now run your project. And drag the seekbar. you will see the result in text view as shown below.

android seekbar output

Click the button below to Download Source code

Download Source Code

Partner Sites

  • Manoj Patel

    Dear Sir,

    How to connect MS Sql server 2008?
    Could you please share some example for mssql connection and insert, update, delete, view statement.