app/src/main/res/drawable/rounded_bg.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ffffff" /> <!-- set the background color -->
<corners android:radius="10dp" /> <!-- set the radius of the corners -->
</shape>