Android——Shape
介绍
Android中Shape是自定义样式,有三种属性
属性
<stroke android:color=" " android:width=" " /> //边宽和颜色
<corners android:radius=" " /> //角度
<solid android:color=" "/> //填充颜色
使用
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:color="#0000ff" android:width="2dp"/>
<corners android:radius="10dp"/>
<solid android:color="@color/taobaoColor"/>
</shape>
效果


浙公网安备 33010602011771号