【问题标题】:how to give scroll view and swipe for total activity view如何为总活动视图提供滚动视图和滑动
【发布时间】:2014-08-21 16:34:09
【问题描述】:

在我的活动中,我还有 listview 和 3 个按钮和滑动菜单。如果滑动该菜单列表视图正在滚动。如何禁用按钮和列表视图的调度事件。我如何获得在 dispatchtouchevent 中点击了哪个视图。

【问题讨论】:

    标签: android


    【解决方案1】:

    禁用后视图的触摸(您的滑动菜单或...)使用此

    // Disallow Drawer to intercept touch events. v.getParent().requestDisallowInterceptTouchEvent(true);

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-06
      • 1970-01-01
      • 1970-01-01
      • 2011-07-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多