Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get ripple effect to extend past view bounds?

The touch ripple effect here expands past its bounds. How is this done?

enter image description here

EDIT: I am okay with this working on 5.0+ only.

like image 846
ZakTaccardi Avatar asked Feb 23 '15 19:02

ZakTaccardi


1 Answers

I've read from a few places that:

If you want to apply the standard ripple effect on Android 5.0: API 21 or more, which should not be limited to your view (unbounded ripple), just apply to your View background :

android:background="?android:attr/selectableItemBackgroundBorderless"
like image 153
AllDayAmazing Avatar answered Oct 24 '22 08:10

AllDayAmazing