【发布时间】:2022-06-11 05:48:22
【问题描述】:
我正在尝试用破折号创建一个可绘制的圆形。我能够用破折号实现圆圈,但无法应用渐变色。有什么办法吗?提前致谢。
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<size
android:width="@dimen/size60"
android:height="@dimen/size60" />
<stroke
android:width="1dp"
android:color="@color/white"
android:dashWidth="3dp"
android:dashGap="1dp" />
</shape>
实现的视图:
需要查看:
【问题讨论】:
标签: android android-layout android-xml android-drawable