alexfu
1/12/2016 - 8:07 PM

v21 checkable selector with ripples

v21 checkable selector with ripples

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
  <item android:state_activated="true" android:drawable="@color/mycolor"/>
  <item android:drawable="@drawable/ripple_item_background"/>
</selector>
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
  android:color="@color/mycolor">
  <item android:id="@+id/mask">
    <color android:color="@android:color/white" />
  </item>
</ripple>