[英]How to make curved edge in a rectangle shape in android
Am trying to achieve this without using image as background, wanted to be done in xlm drawable我试图在不使用图像作为背景的情况下实现这一目标,希望在 xlm drawable 中完成
Use this用这个
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#FFFFFF" />
</shape>
</item>
<item
android:bottom="0dp"
android:left="-200dp"
android:right="-200dp"
android:top="-340dp">
<shape
android:shape="oval">
<solid android:color="@color/dark_orange" />
</shape>
</item>
Change left-right margin as per your requirements.根据您的要求更改左右边距。 That will change curve.
那会改变曲线。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.