Skip to content

Instantly share code, notes, and snippets.

@aashreys
Created February 5, 2017 18:05
Show Gist options
  • Save aashreys/017bba7d6211319998e2c8cffe528065 to your computer and use it in GitHub Desktop.
Save aashreys/017bba7d6211319998e2c8cffe528065 to your computer and use it in GitHub Desktop.
Unbounded ripples which gracefully fallback to the default selector in pre-lollipop devices.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<attr name="selectableItemBackgroundBorderlessCompat" />
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Add your theme attributes here. -->
<item name="selectableItemBackgroundBorderlessCompat">?attr/selectableItemBackgroundBorderless</item>
</style>
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Add your theme attributes here. -->
<item name="selectableItemBackgroundBorderlessCompat">?attr/selectableItemBackground</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment