标签:within
Rounded progress within Rounded progressbar
<ProgressBar
android:id="@+id/progress"
style="@android:style/Widget.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:indeterminate="false"
android:progress="100"
android:progressDrawable="@drawable/progress" />
<?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>
<corners android:radius="20dp" />
<solid android:color="@android:color/transparent" />
<stroke android:color="@color/black_20" android:width="0.5dp" />
</shape>
</item>
<item android:id="@android:id/progress">
<scale android:drawable="@drawable/custom_progress_primary"
android:scaleWidth="90%"/>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners
android:radius="20dp"
android:topLeftRadius="20dp"
android:topRightRadius="20dp" />
<solid android:color="@color/progress_one" />
</shape>
标签:within
原文地址:http://6169621.blog.51cto.com/6159621/1627192