Skip to content

Instantly share code, notes, and snippets.

@Binary-Finery
Last active May 30, 2018 11:08
Show Gist options
  • Save Binary-Finery/c7489d04f8f6de33bb339d755a710ac3 to your computer and use it in GitHub Desktop.
Save Binary-Finery/c7489d04f8f6de33bb339d755a710ac3 to your computer and use it in GitHub Desktop.
drawable for buttons pressed & unpressed state
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<!--start of pressed state-->
<item android:state_pressed="true">
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#E0E0E0" />
<stroke android:width="1dp" android:color="#212121" />
<corners android:radius="50dp" />
</shape>
</item>
<!--end of pressed state-->
<!--start of unpressed state-->
<item>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<solid android:color="#FEFEFE" />
<stroke android:width="1dp" android:color="#212121" />
<corners android:radius="50dp" />
</shape>
</item>
<!--end of unpressed state-->
</selector>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment