Wednesday, 2 December 2015

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" >
  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" >
  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.

No comments:

Post a Comment