Skip to content

Instantly share code, notes, and snippets.

View svvashishtha's full-sized avatar

Saurabh Vashisht svvashishtha

View GitHub Profile
@svvashishtha
svvashishtha / corner_radius_empty_grey.xml
Last active May 15, 2019 04:54
A rectangle shape drawable that can be used as a background. The corners of this drawable are curved. corner_radius_filled_grey.xml is a solid background. corner_radius_empty_grey.xml provides a boundary of grey rectangle with transparent background.
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="#ececec">
<item>
<shape
android:padding="10dp"
android:shape="rectangle">
<corners
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"
@svvashishtha
svvashishtha / corner_radius_empty_grey.xml
Created May 15, 2019 04:52
A rectangle shape drawable that can be used as a background. The corners of this drawable are curved.
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/grey_2">
<item>
<shape
android:padding="10dp"
android:shape="rectangle">
<corners
android:bottomLeftRadius="10dp"
android:bottomRightRadius="10dp"