Home  >  Q&A  >  body text

Android 5.0 Material Design 的Ripple波纹效果怎么默认全局实现?

PHP中文网PHP中文网2763 days ago641

reply all(4)I'll reply

  • ringa_lee

    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

    reply
    0
  • PHP中文网

    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).

    reply
    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.

    reply
    0
  • ringa_lee

    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

    reply
    0
  • Cancelreply