我如何绘制这个圆角矩形?
How do I draw this round rectangle?
enter image description here我是 Android 实习的初学者,我被赋予完成此导航抽屉的任务 app.Any 帮助将不胜感激
创建新的可绘制对象并添加以下代码:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:topLeftRadius="20dp" android:bottomRightRadius="20dp"/>
<solid android:color="@color/semi_transparent_white"/>
</shape>
</item>
</selector>
enter image description here我是 Android 实习的初学者,我被赋予完成此导航抽屉的任务 app.Any 帮助将不胜感激
创建新的可绘制对象并添加以下代码:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:topLeftRadius="20dp" android:bottomRightRadius="20dp"/>
<solid android:color="@color/semi_transparent_white"/>
</shape>
</item>
</selector>