
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
- <?xml version="1.0" encoding="utf-8"?>
- <shape xmlns:android="http://schemas.android.com/apk/res/android" >
- <gradient
- android:angle="90"
- android:centerColor="#fff"
- android:endColor="#fff"
- android:startColor="#fff" />
- <corners android:radius="2dp" />
- <stroke
- android:width="2dp"
- android:color="#fff" />
- <stroke
- android:width="2dp"
- android:color="#fff" />
- </shape>
seekbar_progress.xml
- <?xml version="1.0" encoding="utf-8"?>
- <shape xmlns:android="http://schemas.android.com/apk/res/android" >
- <gradient
- android:angle="90"
- android:centerColor="#7FBD5C"
- .....
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