I want to create a custom progress bar for my Android application.
I'd like to get something like that:
I've created the following code to create a two colors progress bar:
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background">
<shape>
<gradient
android:startColor="#385B68"
android:centerColor="#385B68"
android:centerY="1.0"
android:endColor="#385B68"
android:angle="270" />
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<gradient
android:startColor="#65B4D4"
android:centerColor="#65B4D4"
android:centerY="1.0"
android:endColor="#65B4D4"
android:angle="270" />
</shape>
</clip>
</item>
</layer-list>
But I'd like to know how I could add the separators every 10% or even every 20%. Is there a special way to achieve that ?
Thanks for your precious help.