Android Shape

来源:互联网 发布:软件接口开发 编辑:程序博客网 时间:2024/05/22 00:21

原文:http://blog.csdn.net/sunny2come/article/details/6890934


<!-- 实心 -->    <solid android:color="#ff9d77" /><!-- 渐变 -->    <gradient        android:angle="90" // 必须45°倍数android:type="linear | radial | sweep" // type 为 radial时必须指定 android:gradientRadius 半径       android:centerColor="#FFFFFF"        android:endColor="#000000"        android:startColor="#ff8c00" /> <!-- 描边 -->    <stroke        android:width="10dp"        color="#dcdcdc"// - - - - - - 下面2个是虚线 - - - - - - -         android:dashGap="3dp" //2个虚线间隔        android:dashWidth="5dp" //虚线长度/> <!-- 圆角 -->    <corners android:radius="10dp" /><!-- <padding -->    <!-- android:bottom="10dp" -->    <!-- android:left="10dp" -->    <!-- android:right="10dp" -->    <!-- android:top="10dp" /> -->


原创粉丝点击