RippleEffect
RippleEffect copied to clipboard
Implementation of Ripple effect from Material Design for Android API 9+
 https://user-images.githubusercontent.com/17552960/176094775-0d0348c7-ffc9-4087-9171-a984626ab49b.mp4 
It's not working on apps having API level 30 or above
As "compile" is going to be deprecated end-2018, this PR replaces with "implementation" that is the new usage.
----setRippleColor & getRippleColor The param rippleColor has different meaning.
how instead of a rectangle to set another area of the circle type
这样的场景, 有时比较卡, 波纹动画时间就变得很长,这样导致点击进入另外一个activity,再返回原界面,还会继续上次的动画
java.lang.IllegalStateException: Underflow in restore - more restores than saves at android.graphics.Canvas.native_restore(Native Method) at android.graphics.Canvas.restore(Canvas.java:540) at com.andexert.library.RippleView.draw(RippleView.java:166) ``` ```
I've added a ripple effect to a view. a new activity will be started onClick. But when I come back to the previous activity(previous view) the ripple effect will finish...
Just upgraded to 28 and am now seeing this issue, it seems like the library controls both ripples
机型:小米4c 系统版本 7.0 java.lang.IllegalStateException: Underflow in restore - more restores than saves at android.graphics.Canvas.native_restore(Native Method) at android.graphics.Canvas.restore(Canvas.java:522) at com.andexert.library.RippleView.draw(RippleView.java:166) at android.view.View.updateDisplayListIfDirty(View.java:16078) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3730) at android.view.View.updateDisplayListIfDirty(View.java:16041) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3750) at...