Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:color="@color/signIn"
android:width="2dp"/>
<solid android:color="@android:color/transparent"/>
<corners
android:radius="5dp"/>
// follow the comments in get.xml for better understanding
@Ochuba
Ochuba / get.xml
Created September 25, 2019 17:19
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> // defines the shape of the background
<solid android:color="@color/signIn"/> // this color is defined in the color.xml
<corners android:radius="5dp"/> // defines the corner radius
</shape>