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

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

    It seems to be fixed in

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

    Only Lint shows it red underlined, but it works.

提交回复
热议问题