简体   繁体   中英

How to use Ripple effect to below lollipop version?

I want to use Ripple effect to my app, but i read a review which is only applicable for 5.0 and above. Then how to use ripple library to below 5.0?

Easiest way is to use ripple libraries. For example this one. Just copy its dependency to build.gradle of project and then wrap your view that needs ripple effect by this code in xml:

Read its readme file to undrstand better

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM