Skip to content

Instantly share code, notes, and snippets.

View transparent.xml
<?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
View get.xml
<?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>