码迷,mamicode.com
首页 > 其他好文 > 详细

ProgressBar

时间:2015-04-01 13:34:16      阅读:110      评论:0      收藏:0      [点我收藏+]

标签: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>

ProgressBar

标签:within

原文地址:http://6169621.blog.51cto.com/6159621/1627192

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!