Android 5.0 Material Design 的Ripple波纹效果怎么默认全局实现?
PHP中文网
PHP中文网 2017-04-17 13:58:25
0
4
638
PHP中文网
PHP中文网

认证0级讲师

reply all(4)
左手右手慢动作

I tried it and it said that both situations must be wrapped in com.andexert.library.RippleView to be effective.

The test machine is 4.4
Used android studio 1.3

洪涛

Because this feature supports devices running Android 5.0. If you want to be compatible with lower system versions, you need to create a new Resource Directory for v21 (i.e. Android 5.0).

刘奇

This has nothing to do with 3.0 and 4.0. The ripple effect was added after 5.0. If you want to use it in an earlier version, you need to use a dependent library to achieve it. If you like Material design, you can check out Google's own design support library.

左手右手慢动作

Google's design support library. There is no Ripple effect below API 21. If you want to achieve the ripple effect in lower versions, you have to use a third-party library. RippleView

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!