圆形shape

圆形drawable目录下

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval"
    android:useLevel="false"
    >
    <corners
            android:radius="49dp"
        ></corners>
    <stroke android:width="2dp"
        android:color="@color/green"></stroke>

</shape>



<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval"
    android:useLevel="false"
    >
    <corners
            android:radius="8dp"
        ></corners>
    <stroke android:width="2dp"
        android:color="@color/ed_color"></stroke>

</shape>

阅读更多
上一篇Fragment1中自定义控件适配
下一篇年龄垂直滑动
想对作者说点什么? 我来说一句

shape 实现圆形、圆角矩形

u010039540 u010039540

2016-10-31 14:00:30

阅读数:2838

使用shape画圆

mingyue_1128 mingyue_1128

2014-06-11 10:43:26

阅读数:3590

没有更多推荐了,返回首页

关闭
关闭