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>

 

效果

  

 

posted @ 2021-09-06 15:25  remix_alone  阅读(45)  评论(0)    收藏  举报