Skip to content

Instantly share code, notes, and snippets.

@lokcito
Created December 7, 2019 17:53
Show Gist options
  • Save lokcito/4d99682dc44e09f1cdd8a90c29fdd626 to your computer and use it in GitHub Desktop.
Save lokcito/4d99682dc44e09f1cdd8a90c29fdd626 to your computer and use it in GitHub Desktop.
android-input-icon.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- res/drawable/input_border_radius.xml -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" android:padding="10dp">
<solid android:color="#FFFFFF"/>
<stroke android:width="2dp" android:color="#FF0000" />
<corners
android:bottomRightRadius="15dp"
android:bottomLeftRadius="15dp"
android:topLeftRadius="15dp"
android:topRightRadius="15dp"/>
</shape>
</item>
<item>
<bitmap android:src="@drawable/outlook" android:gravity="center" />
</item>
</layer-list>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment