Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android ripple effect outside view for pre lollipop

Tags:

android

I have a circular view and what I need is to generate ripple effect outside the view with some light shade when we click on the view.

like image 311
Pooja Rajendran C Avatar asked Sep 03 '25 05:09

Pooja Rajendran C


2 Answers

Take a look at these 2 libraries:

https://github.com/skyfishjy/android-ripple-background

https://github.com/ruzhan123/RippleView

enter image description here

like image 80
shine_joseph Avatar answered Sep 04 '25 19:09

shine_joseph


Use this library to create ripple effect in pre lollipop devices too.

<com.andexert.library.RippleView
  android:id="@+id/more"
  android:layout_width="?android:actionBarSize"
  android:layout_height="?android:actionBarSize"
  android:layout_toLeftOf="@+id/more2"
  android:layout_margin="5dp"
  rv_centered="true">

 <!--Create your circular view between these tags here -->

</com.andexert.library.RippleView>
like image 42
Sohail Zahid Avatar answered Sep 04 '25 17:09

Sohail Zahid