progress bar - Progressbar with three sections in Android -


i have figured out can set secondary progress progress bar in android defining custom style following xml code:

res/drawable/custom_profressbar_horizontal.xml:

<?xml version="1.0" encoding="utf-8"?>![enter image description here][1]  <layer-list xmlns:android="http://schemas.android.com/apk/res/android">     <item         android:id="@android:id/background">       <shape>                 <corners android:radius="15dip" />                 <gradient                      android:startcolor="#ffffffff"                      android:centercolor="#ffdddddd"                      android:centery="0.50"                      android:endcolor="#ffffffff"                      android:angle="270" />             </shape>     </item>     <item android:id="@android:id/secondaryprogress">         <clip>             <shape>                 <corners android:radius="15dip" />                 <solid android:color="#ec3910"/>             </shape>         </clip>     </item>     <item android:id="@android:id/progress">          <clip>              <shape>                  <corners   android:radius="15dip" />                  <gradient android:startcolor="#ff0e75af"                       android:endcolor="#ff1997e1"                       android:angle="90" />              </shape>          </clip>     </item> </layer-list> 

and in layout of activity have this:

activity_maib.xml:

<progressbar     style="@style/customprogressbar"     android:layout_width="fill_parent"     android:layout_height="30dp"     android:layout_margin="7dp"     android:max="100"     android:progress="50"     android:secondaryprogress="80" /> 

and have progress bar:

enter image description here

but need have third progress. how can this?

thanx in advance.


Comments

Popular posts from this blog

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -