How to use setDuration() method in SnackBar (Android Design Support Library)

前端 未结 7 1988
不知归路
不知归路 2020-12-23 16:09

From Documentation: parameter duration - either be one of the predefined lengths: LENGTH_SHORT, LENGTH_LONG, or a custom duration in milliseconds. But I can

7条回答
  •  长情又很酷
    2020-12-23 16:32

    Hello there give this external library a try https://github.com/nispok/snackbar. It is deprecated but it will easily solve your problem. It is moreover easy to implement. Before Support library i was using this library only for snackbars. Due to the duration problem of support library, i am happy to use this library only.

提交回复
热议问题