Skip to content

Instantly share code, notes, and snippets.

@artem-zinnatullin
Created January 22, 2015 21:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save artem-zinnatullin/69096b1490ae8c56edd2 to your computer and use it in GitHub Desktop.
Save artem-zinnatullin/69096b1490ae8c56edd2 to your computer and use it in GitHub Desktop.
Common Ripple drawable
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/bg_item_ripple">
<item>
<selector>
<item android:state_pressed="true" android:drawable="@color/bg_item_pressed"/>
<item android:state_focused="true" android:drawable="@color/bg_item_focused"/>
<item android:drawable="@color/bg_item_normal"/>
</selector>
</item>
</ripple>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment