Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create circular ripple?

I want to create similar ripple effect which is shown in red box and is indicated with an arrow.

enter image description here

Whenever I set selectableItemBackground to any element, it just displays ripple over the element's layout bounds, and not like the one I have shared above.

Please share a working example. Thanks.

like image 595
Ali_Waris Avatar asked Sep 05 '25 13:09

Ali_Waris


2 Answers

Use selectableItemBackgroundBorderless instead of selectableItemBackground.

like image 197
Bryan Avatar answered Sep 09 '25 03:09

Bryan


use actionBarItemBackground value for background

android:background="?android:attr/actionBarItemBackground"
like image 21
Rasoul Miri Avatar answered Sep 09 '25 05:09

Rasoul Miri