How to disable swipe to dismiss Android Custom Snack Bar

江枫思渺然 提交于 2019-12-11 07:29:31

问题


I'm using CustomSnackBar library from GITHUB ,

Check this: https://github.com/TakeoffAndroid/CustomSnackBar/blob/master/app/src/main/java/com/takeoffandroid/customsnackbar/SnackBar.java

This is so usefull to customize my snackbar.

But I want to disable swipe to dismiss , I tried all answer's from satckoverflow but no luck still its allowing to swipe to dismiss . Kindly advise is there any way to disable swipe to dismiss this custom snack bar.

  • Android Studio ver:2.1
  • compileSdkVersion 23
  • buildToolsVersion "23.0.3"
  • Design Lib : com.android.support:design:23.3.0

Thanks in advance,

来源:https://stackoverflow.com/questions/37142858/how-to-disable-swipe-to-dismiss-android-custom-snack-bar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!