How to Customize seekbar in Android
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"
android:endColor="#7FBD5C"
android:startColor="#7FBD5C" />
<corners android:radius="1dp" />
<stroke
android:width="1dp"
android:color="#fff" />
<stroke
android:width="1dp"
android:color="#fff" />
</shape>
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.You can check more Open ERP blogs in FindNerd. Apart from this you can also post and view C, PHP, JAVA, HTML, iOS and Android questions and answers at FindNerd’s community forum.
Advertise on APSense
This advertising space is available.
Post Your Ad Here
Post Your Ad Here
Comments