package com.kfzs.android.view;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

/**
 * Created by HooRang on 2017/2/15.
 * Can not scoll viewpager
 */
public class NoscrollViewPager extends ViewPager {


    public NoscrollViewPager(Context context) {
        super(context);
    }


    public NoscrollViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        return false;
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent event) {
        return false;
    }


}
