I am using third party library Here's https://github.com/traex/RippleEffect to achieve ripple effect and I am successful in that .
I am calling my action code inside setOnRippleCompleteListener
The problem is it takes a little more time to complete the ripple effect , then it fires the action code
I used app:rv_framerate & app:rv_rippleDuration to reduce ripple effect time, but didn't found any difference it ripple effect speed
Related
In my Android application I want to have a Floating Action Button to display a success state. I would like to have something like in the picture below:
But I have no idea how to animate the cross to the mark. Can someone please explain to me how I can do that? Is there maybe a library or something like that? Atm I'm using the default FAB from the design library.
This question got me interested in checking out AnimatedVectorDrawable, so I went ahead and made a small sample app that will achieve a similar animation, on github here.
Bad quality gif here.
Couple things to note: minimum SDK is set to 23 to make use of AnimationCallbacks for starting the 2nd animation, but you can achieve the same result using a Handler.postDelayed() with your animation durations to handle the drawable change and animation start. Since AnimatedDrawableCompat does not support path morphing, I needed two drawables to get the two different images.
Should be compatible with the Support Library AnimatedVectorDrawableCompat if you choose to use it as well.
I am looking for the effect shown bellow
I can't name the effect so I am unable to look for any resources online. It looks like a ripple but when I search for that all I find are ripples on buttons etc.
Does anyone have any resources on the topic?
Thanks
Your searches aren't working because that's not a "ripple" effect, but a "reveal" effect!
Here's a guide:
https://developer.android.com/training/material/animations.html#Reveal
It is called the "Circular Reveal" animation and is detailed here: https://developer.android.com/training/material/animations.html
When i tap “Attach” button of Whatsapp then it displays menu with circular animation. This effect is known as Circular Reveal Animation and Ripple Effect. See
Learn Android Material Design - Create Circular Reveal Animation And Ripple Effect like Whatsapp. Full source code is attache with article, so you can easily download it.
http://pulse7.net/android/android-create-circular-reveal-animation-and-ripple-effect-like-whatsapp/
This video here perfectly explains the effect I am trying to replicate: http://imgur.com/a/s7X5j#5
I am able to create a circular reveal as instructed in the documentation but I have no idea how to combine it with that color ripple.
Is there any suggestion on how to do this properly?
I want to use water ripple effect in my application, which effect continue in touch area repeatedly,I have gone to may sample code available in site,but ripple seems pixelated.
Can any one please help me ,to implement live water ripple effect?.I found difficult to implement it.
Salaam
I found this project, and it worked for me. it shows water ripple effect in One activity.
https://codeload.github.com/esteewhy/whater/zip/master
I have an application which have multiple backgrounds. I would like to cross-fade these backgrounds at a fixed time interval having one background fading out while slowly showing another (kind of like a slideshow). I know how to use the cross-fading effect in xml but the problem is it won't show another image until the active image is totally fading out. I want the transitions to overlap. Please help.
Thanks.
Have a look at this tutorial: http://www.pushing-pixels.org/2011/03/07/android-bits-and-pieces-image-cross-fading.html
see the below link,which solved my problem(cross-fade effect when changing backgrounds of a view):
Crossfading using TransitionDrawable not working on android