Created
January 12, 2016 20:07
-
-
Save alexfu/7512da07e81dab7fe32f to your computer and use it in GitHub Desktop.
v21 checkable selector with ripples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment