SwipeToDismiss works only on Buttons?

拜拜、爱过 提交于 2020-01-06 15:10:03

问题


I am Using SwipeDismissTouchListener in my Code but it seams to work only for buttons , not for TextView, RelativeLayout etc.

How to use it for other View Types?


回答1:


Got the Solution :)

It works for all views required they should have an onClickListener implemented. Buttons tend to have that by default :)



来源:https://stackoverflow.com/questions/20897288/swipetodismiss-works-only-on-buttons

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