I have a textview and want its corner to be in round shape. I already know it can be done using android:background=\"@drawable/somefile\". In my case, this tag
android:background=\"@drawable/somefile\"
Create rounded_corner.xml in the drawable folder and add the following content,
rounded_corner.xml
drawable
Set this drawable in the TextView background property like so:
TextView
android:background="@drawable/rounded_corner"
I hope this is useful for you.