【问题标题】:Chris Banes -PullToRefreshListView blocks onTouch event of parent activityChris Banes -PullToRefreshListView 阻止父活动的 onTouch 事件
【发布时间】:2013-06-06 08:08:50
【问题描述】:

我已经在一个片段中实现了 PullToRefreshListView。现在包含此片段的活动具有其 onTouch 事件。但是如果触摸在 PullToRefreshListView 上,则不会调用活动的 onTouch 事件。如果触摸,我如何调用 Activity 的 onTouch事件不适用于 PullToRefreshListView。

https://github.com/chrisbanes/Android-PullToRefresh

【问题讨论】:

  • 我也有同样的问题如何解决,谢谢

标签: android


【解决方案1】:

您可以根据自己的需要修改PullToRefreshBase 类中的onTouch() 方法。如果onTouch() 方法将返回false,您的活动将处理此事件。

【讨论】:

    猜你喜欢
    • 2014-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多