android - Custom Progressbar Drawable -


i want create custom progressbar. i've created style this:

<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" >  <item android:id="@android:id/background"    android:drawable="@drawable/loading_empty">        </item>   <item android:id="@android:id/progress">     <clip>         <shape>             <gradient                 android:startcolor="#007a00"                 android:centercolor="#007a00"                 android:centery="1.0"                 android:endcolor="#06101d"                 android:angle="270"             />         </shape>     </clip> </item>  </layer-list> 

my progressbar background "@drawable/loading_empty". works fine. right know bar green. (see second item). have second drawable, how bar should like. how can implement this? if try first item whole progressbar filled second drawable.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -