Customized progressbar color tutorial aide ide


Tutorial on how to customized progressbar  color in aide ide.

First goto res/drawable folder and create a new file and name into "progress_modded.xml" thin copy and paste the code below. Don't forgot to change startcolor, centercolor and endcolor to what ever you want.
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:id="@android:id/background">
<shape>
<gradient
          android:startColor="#31010101"
          android:centerColor="#31010101"
          android:centerY="1.0"
          android:endColor="#31010101"
          android:angle="270"
/>
</shape>
</item>
<item android:id="@android:id/progress">
<clip>
<shape>
<gradient
android:startColor="#BCD14112"
android:centerColor="#BCED673B"
android:centerY="1.0"
android:endColor="#31010101"
android:angle="270"
/>
</shape>
</clip>
  </item>
</layer-list>
Next goto your layout where the progressbar code is located and add this code below. Note inside in your progressbar code.
android:progressDrawable="@layout/progress_modded"

Done.

Comments

Popular posts from this blog

Implement in-app purchase in aide ide

Implement google admob interstitial ads in aide ide

Android listview with search function using aide ide

Implement google admob banner ads in aide ide

Aide ide tutorial - Add line graph


Malitanyo Developer blog & tutorial 2020
Refund Policy    Facebook Page    Google Play

Blogger.com