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

前端 未结 7 1932
不知归路
不知归路 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:39

    Since 'com.android.support:design:22.2.1'

    you can set the duration of your Snackbar to LENGTH_INDEFINITEit will make the Snackbar shown until it is dismissed or another snackbar is shown.

提交回复
热议问题