How to Customize seekbar in Android

seekbar

If you want to customize seekbar in Android then follow the steps mentioned below:-

1) To customize seekbar background create a new xml file in your project’s drawable folder .

seekbar_background.xml

  1. <?xml version=”1.0″ encoding=”utf-8″?>
  2. <shape xmlns:android=”http://schemas.android.com/apk/res/android&#8221; >
  3. <gradient
  4. android:angle=”90″
  5. android:centerColor=”#fff”
  6. android:endColor=”#fff”
  7. android:startColor=”#fff” />
  8. <corners android:radius=”2dp” />
  9. <stroke
  10. android:width=”2dp”
  11. android:color=”#fff” />
  12. <stroke
  13. android:width=”2dp”
  14. android:color=”#fff” />
  15. </shape>

2) To customize seekbar progress create a new xml file in your project’s drawable folder .

seekbar_progress.xml

  1. <?xml version=”1.0″ encoding=”utf-8″?>
  2. <shape xmlns:android=”http://schemas.android.com/apk/res/android&#8221; >
  3. <gradient
  4. android:angle=”90″
  5. android:centerColor=”#7FBD5C”
  6. …..

Read full blog at :How to Customize seekbar in Android

You can check more informative blogs and tutorials at android development blogs section and can also browse the android developer forum for posting and viewing latest questions on android development.

Advertisements
How to Customize seekbar in Android

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s