@@ -0,0 +1,931 @@
+%0Apackage jp.baroqueworksdev.myapidemo.view;%0A%0Aimport android.content.Context;%0Aimport android.support.v4.view.ViewPager;%0Aimport android.util.AttributeSet;%0Aimport android.view.MotionEvent;%0A%0Apublic class MyViewPager extends ViewPager %7B%0A    private boolean mIsEnabledSwipe = true;%0A%0A    public MyViewPager(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public MyViewPager(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A    %7D%0A%0A    @Override%0A    public boolean onTouchEvent(MotionEvent event) %7B%0A        if (!mIsEnabledSwipe) %7B%0A            return false;%0A        %7D%0A        return super.onTouchEvent(event);%0A    %7D%0A%0A    @Override%0A    public boolean onInterceptTouchEvent(MotionEvent event) %7B%0A        if (!mIsEnabledSwipe) %7B%0A            return false;%0A        %7D%0A        return super.onInterceptTouchEvent(event);%0A    %7D%0A%0A    public void setEnabledSwipe(boolean enabled) %7B%0A        mIsEnabledSwipe = enabled;%0A    %7D%0A%0A%7D%0A

add MyViewPager