如何在 constraintLayout 中进行曲线设计,如下所示

how to make a curved design in constraintLayout as given below

如何在约束布局中制作这个内部有文本的弯曲视图

像这样为 textview 的父布局添加背景

android:background="@drawable/my_bg"

并像这样创建 my_bg.xml

<?xml version="1.0" encoding="utf-8"?>
<shape
    android:shape="rectangle"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <!--Adjust the values as per your requirement-->
    <corners
        android:bottomLeftRadius="30dp"
        android:bottomRightRadius="30dp"/>
    <solid
        android:color="@color/your_color"/>

</shape>