android.widget.HorizontalScrollView.onInterceptTouchEvent()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(141)

本文整理了Java中android.widget.HorizontalScrollView.onInterceptTouchEvent()方法的一些代码示例,展示了HorizontalScrollView.onInterceptTouchEvent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HorizontalScrollView.onInterceptTouchEvent()方法的具体详情如下:
包路径:android.widget.HorizontalScrollView
类名称:HorizontalScrollView
方法名:onInterceptTouchEvent

HorizontalScrollView.onInterceptTouchEvent介绍

暂无

代码示例

代码示例来源:origin: stripe/stripe-android

@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
  // Reject all intercept events if mScrollable is false.
  return mScrollable && super.onInterceptTouchEvent(event);
}

代码示例来源:origin: Simon-Leeeeeeeee/SLWidget

@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
  boolean intercept = super.onInterceptTouchEvent(ev);
  if (MotionEvent.ACTION_DOWN == ev.getAction()) {
    //判断是否正在scroll,由HorizontalScrollView源码可知:DOWN事件中,只有scroll未结束时才会返回true
    mTouchTab = null;
    isScrolling = intercept;
  }
  return intercept;
}

代码示例来源:origin: woxblom/DragListView

@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
  boolean retValue = handleTouchEvent(event);
  return retValue || super.onInterceptTouchEvent(event);
}

代码示例来源:origin: andstatus/andstatus

@Override
public boolean onInterceptTouchEvent(MotionEvent event) {
  boolean retValue = handleTouchEvent(event);
  return retValue || super.onInterceptTouchEvent(event);
}

代码示例来源:origin: GeoODK/collect

@Override public boolean onInterceptTouchEvent(MotionEvent event)
  {
    boolean ret = super.onInterceptTouchEvent(event);
    ret = ret | sv.onInterceptTouchEvent(event);
    return ret;
  }
}

代码示例来源:origin: com.albedinsky.android/ui

/**
 */
@Override
public boolean onInterceptTouchEvent(@NonNull MotionEvent event) {
  this.ensureDecorator();
  return mDecorator.onInterceptTouchEvent(event) || super.onInterceptTouchEvent(event);
}

代码示例来源:origin: com.albedinsky.android/ui-widget-layout-scroll

/**
 */
@Override
public boolean onInterceptTouchEvent(@NonNull MotionEvent event) {
  this.ensureDecorator();
  return mDecorator.onInterceptTouchEvent(event) || super.onInterceptTouchEvent(event);
}

代码示例来源:origin: com.albedinsky.android/ui-widget-layout

/**
 */
@Override
public boolean onInterceptTouchEvent(@NonNull MotionEvent event) {
  this.ensureDecorator();
  return mDecorator.onInterceptTouchEvent(event) || super.onInterceptTouchEvent(event);
}

代码示例来源:origin: Wilm0r/giggity

@Override
public boolean onInterceptTouchEvent(MotionEvent event)
{
  if (super.onInterceptTouchEvent(event) || vscroll.onInterceptTouchEventInt(event) || event.getPointerCount() >= 2) {
    onTouchEvent(event);
    return true;
  }
  return false;
}

相关文章

HorizontalScrollView类方法