I know that we can simply set the ?android:attr/selectableItemBackgroundBorderlessbackground property to get an unlimited ripple effect for the view.
We can also just have our own ripple to have an individual color:
<!-- An unbounded blue ripple. --/>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="@color/blue" />
The result is an unlimited circle with a ripple effect, starting from the center ripple to the corners.
I am trying to create the same effect with a Rectangle and not with a circle, but I could never find the same effect. For example, I tried using the mask view:
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:colorControlHighlight">
<item android:id="@android:id/mask">
<shape android:shape="rectangle">
<solid android:color="?android:colorAccent" />
</shape>
</item>
</ripple>
Other samples: http://blog.stylingandroid.com/ripples-part-3/
, unbounded. ( )
( Android-M Preview)
, - ( )?
?