Define rounded_corners_bg.xml in drawables:
xxxxxxxxxx
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="10dp"/>
</shape>
Add rounded_corners_bg.xml as background to your layout:
android:background="@drawable/layout_bg"
If you need to add more information to your background, like a color, you can use the android:backgroundTint property.