I love the new Touch Ripple animation that was introduced in the new Android L-release as part of the new UI philosophy Material Design.
You can find a video of it in th
My answer is kind of late but I wanted to share my solution too. I created another class called TouchEffectAnimator with the idea of Niek Haarman. Thanks to Mr. Haarman by the way.
You can see the class and an example usage of it on this gist. Also I'll explain it simply.
The class contains all the necessary methods and variables in it and creates the same animation that Android L (preview) currently has. For using this class:
and that's it. But there are two things that should be done for this class to work properly.
I hope it works for you too.
P.S. I created this class for my library project Android FlatUI Kit. You can see the usage of this class in FlatButton class as well.