android 圆环(ring)drawable 画法——简单记录

    xiaoxiao2021-09-05  91

    效果图

    资源文件 res/drawable/bg_ring.xml

    <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:innerRadius="45dp" android:shape="ring" android:thickness="0.5dp" android:useLevel="false"> <stroke android:width="0.5dp" android:color="#58C9E7" /> </shape>

    android:innerRadius是圆环半径 android:shape="ring"指定形状为圆环 android:thickness="0.5dp" 环的宽度 android:useLevel="false"设置为false才生效

    转载请注明原文地址: https://ju.6miu.com/read-677450.html

    最新回复(0)