'how to make a curved design in constraintLayout as given below
Solution 1:[1]
Add a background to your parent layout of the textview like this
android:background="@drawable/my_bg"
and create my_bg.xml
like this
<?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>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Sreehari K |