package cn.muchinfo.rma.view.autoWidget

import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.widget.LinearLayout
import com.blankj.utilcode.util.LogUtils


/**
 * 拦截触摸事件的容器
 * Created by xiaoyulaoshi on 2018/1/31.
 */

class InterceptScrollContainer : LinearLayout {

    constructor(context: Context, attrs: AttributeSet) : super(context, attrs) {}

    constructor(context: Context) : super(context) {}

    /**
     * 拦截TouchEvent
     * @see android.view.ViewGroup.onInterceptTouchEvent(android.view.MotionEvent)
     */
    override fun onInterceptTouchEvent(ev: MotionEvent): Boolean {
        LogUtils.eTag("onInterceptTouchEvent", "onInterceptTouchEvent=" + ev)
        return true
    }

    companion object {
        private val TAG = InterceptScrollContainer::class.java.name
    }
}
