如何在 xml android 中绘制四分之一圆

how to draw quarter circle in xml android

我想像这样画一个四分之一圆。

有什么方法可以使用 xml 形状来做这个形状吗?

您可以使用下面的矩形 .xml 文件

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <size android:height="15dp" android:width="15dp"/>
    <solid android:color="@color/darkGray"/>
    <corners android:topRightRadius="0dp" android:bottomRightRadius="15dp"/>
</shape>