Skip to content

Instantly share code, notes, and snippets.

@zawzaww
Created July 13, 2018 14:08
Show Gist options
  • Save zawzaww/69f73d76ed7be20efce450f7645f87a6 to your computer and use it in GitHub Desktop.
Save zawzaww/69f73d76ed7be20efce450f7645f87a6 to your computer and use it in GitHub Desktop.
Sample selector for using background color and button.
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@android:color/white" />
<corners android:radius="3dp" />
<stroke android:width="2dp" android:color="@color/color_primary" />
</shape>
</item>
</selector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment