ringa_lee2017-04-17 14:00:25
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
PHP中文网2017-04-17 14:00:25
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).
怪我咯2017-04-17 14:00:25
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.
ringa_lee2017-04-17 14:00:25
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