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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -