android给View设置边框 填充颜色 弧度

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
    <!-- 填充的颜色 -->
    <solid android:color="@color/white_normal" />
    <corners android:radius="5dp"/>
    
	<!--  设置边框 -->
<!--     <stroke android:width="1dp" android:color="#d8d8d8"/> -->
<!--     <padding android:left="1dp" android:top="1dp" android:right="1dp" android:bottom="1dp" /> -->
</shape>

posted @ 2015-10-31 23:17  安辉  阅读(1665)  评论(0编辑  收藏  举报