Search code examples
androidandroid-animationandroid-5.0-lollipopandroid-4.2-jelly-beanrippledrawable

Android: Is there a way to have lollipop press animation with jellybean min sdk



I'm currently writing an android app. I want the minimum sdk to support jelly bean devices, so I set the min sdk to 17. Everything works, but the pressing animation on buttons and etc. are all the older animations. Is it possible to have the new lollipop circle animation? Or at least have it on 5.0 devices.

If you need anything, comment.


Solution

  • I assume you mean ripple effect. There are several libraries that can handle ripple : traex/RippleEffect, siriscac/RippleView and balysv/material-ripple all supporting API14 and up from what I can see.

    If you wish to use whole material components, not just ripple I'd recommend rey5137/material or navasmdc/MaterialDesignLibrary. Those contain material design buttons, switches and much more ready to use.