Reputation: 452
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.
Upvotes: 4
Views: 961
Reputation: 2942
Take a look at these 2 libraries:
https://github.com/skyfishjy/android-ripple-background
https://github.com/ruzhan123/RippleView
Upvotes: 2
Reputation: 8149
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>
Upvotes: 2