We are improving our service

Android Ripple Effect Truth


Basically There are 2 type of ripple effect available in android

 1. Bounded ripple effect
 2. Unbounded ripple effect

1. Bounded Ripple effect, once user click on view then the effect will happen inside the view's bounds.
To Archive this effect use following background property of view.

android:background=”?selectableItemBackground” 
where ?attr/ references to attributes. Attributes are values specified in your apps theme. for more Referencing style attributes.

2. Unbounded Ripple effect, once user click on view then the effect will extends the view's bounds or outside the view's bound.
To Archive this effect use following background property of view.

android:background=”?selectableItemBackgroundBorderless”

Unfortunately,these ripples are always grey in color.
To tweak these based on your theme, go to your parent theme and change the colorControlHighlight.
In your app’s main theme:

<item name="colorControlHighlight">#1bff3a</item>

This value will change the color of the default ripple.
Note: On devices below 21, the ripple will turn into normal selectors with the same color you have set.