SwipeToDismiss仅适用上的按钮? [英] SwipeToDismiss works only on Buttons?

查看:230
本文介绍了SwipeToDismiss仅适用上的按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的<一个href=\"https://github.com/JakeWharton/SwipeToDismissNOA/tree/master/src/com/example/android/swipedismiss\"相对=nofollow>在我的code SwipeDismissTouchListener 但接缝只为按钮的工作,而不是为TextView的,RelativeLayout的等。

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?

推荐答案

得到了解决:)

它适用于他们应该有一个onClickListener实施所需的所有意见。按钮往往有一个默认:)

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

这篇关于SwipeToDismiss仅适用上的按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆