用来记录方便后期快速找到
圆形形状

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
>
<corners android:radius="1dp">
</corners>
<solid android:color="@color/colorAccent">
</solid>
<size android:width="2dp" android:height="2dp">
</size>
</shape>
圆环形状

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring"
android:innerRadiusRatio="3"
android:thicknessRatio="9"
android:useLevel="false"
>
<solid android:color="@color/colorAccent">
</solid>
<stroke android:color="#151515"
android:width="1dp"
></stroke>
</shape>

这篇博客详细介绍了在Android中如何通过Shape XML来创建圆形和圆环形状,为UI设计提供定制化的图形元素。
最低0.47元/天 解锁文章
1750

被折叠的 条评论
为什么被折叠?



