Skip to content

Instantly share code, notes, and snippets.

@ytRino
Last active August 29, 2015 14:05
Show Gist options
  • Save ytRino/d152e827007b9be2815d to your computer and use it in GitHub Desktop.
Save ytRino/d152e827007b9be2815d to your computer and use it in GitHub Desktop.
simple progress bar customize
<?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 android:shape="line">
<stroke
android:width="4dp"
android:color="#474747"
/>
<size android:height="17dp" />
</shape>
</item>
<item android:id="@android:id/secondaryProgress">
<clip>
<shape android:shape="line">
<stroke
android:width="4dp"
android:color="#fff"
/>
<size android:height="17dp" />
</shape>
</clip>
</item>
<item android:id="@android:id/progress">
<clip>
<shape android:shape="line">
<stroke
android:width="4dp"
android:color="#17ca62"
/>
<size android:height="17dp" />
</shape>
</clip>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:seekBarStyle">@style/custom__seekbar</item>
</style>
<style name="custom__seekbar" parent="android:Widget.Holo.Light.SeekBar">
<item name="android:thumb">@drawable/custom__ic_thumb</item>
<item name="android:progressDrawable">@drawable/custom__progress</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment