http://dev.10086.cn/cmdn/wiki/index.php?doc-view-6087.html
http://www.cnblogs.com/cyanfei/archive/2012/07/27/2612023.html
http://tech.ddvip.com/2012-10/1351226528184208.html
<ProgressBar
android:id="@+id/pro"
style="@style/CustomProgressStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@color/white"
android:indeterminate="false"
android:progress="50" >
</ProgressBar>
<style name="CustomProgressStyle" parent="android:Widget.ProgressBar.Horizontal">
<item name="android:minWidth">646px</item>
<item name="android:maxWidth">646px</item>
<item name="android:minHeight">21px</item>
<item name="android:maxHeight">21px</item>
<item name="android:indeterminateOnly">false</item>
<item name="android:progressDrawable">@drawable/user_progress</item>
</style>
user_progress.xml
<?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/user_info_progress_bg"
>
<shape>
<corners
android:topLeftRadius="20px"
android:topRightRadius="20px" />
<gradient
android:angle="0"
android:centerColor="#DDDDDD"
android:centerY="0.55"
android:endColor="#DDDDDD"
android:startColor="#DDDDDD" />
</shape>
</item>
<item
android:id="@android:id/secondaryProgress"
android:drawable="@drawable/user_info_progress_bg"
>
<clip>
<shape>
<corners
android:topLeftRadius="10px"
android:topRightRadius="10px" />
<gradient
android:angle="0"
android:centerColor="#DDDDDD"
android:centerY="0.55"
android:endColor="#DDDDDD"
android:startColor="#DDDDDD" />
</shape>
</clip>
</item>
<item
android:id="@android:id/progress"
android:drawable="@drawable/user_info_progress"
>
<clip>
<shape>
<corners
android:topLeftRadius="10px"
android:topRightRadius="10px" />
<gradient
android:angle="0"
android:centerColor="#DDDDDD"
android:centerY="0.55"
android:endColor="#DDDDDD"
android:startColor="#DDDDDD" />
</shape>
</clip>
</item>
</layer-list>