Created
March 22, 2015 03:16
-
-
Save vikramkakkar/cc448b8f79a9f31a950d to your computer and use it in GitHub Desktop.
API level < 21
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_pressed="true" > | |
<shape android:shape="rectangle"> | |
<solid android:color="@color/fill_color_when_pressed" /> | |
<corners android:topRightRadius="@dimen/corner_radius" android:bottomRightRadius="@dimen/corner_radius"/> | |
</shape> | |
</item> | |
<item android:state_checked="true" > | |
<shape android:shape="rectangle"> | |
<solid android:color="@color/fill_color_when_active" /> | |
<corners android:topRightRadius="@dimen/corner_radius" android:bottomRightRadius="@dimen/corner_radius"/> | |
</shape> | |
</item> | |
<item android:drawable="@android:color/transparent"/> | |
</selector> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment