package com.tejia.lijin.app.util.view;
|
|
import android.content.Context;
|
import androidx.viewpager.widget.ViewPager;
|
import android.util.AttributeSet;
|
import android.view.MotionEvent;
|
|
/**
|
* Created by weikou2015 on 2018/8/23.
|
*/
|
|
public class PhotoViewPager extends ViewPager {
|
|
|
public PhotoViewPager(Context context) {
|
super(context);
|
}
|
|
public PhotoViewPager(Context context, AttributeSet attrs) {
|
super(context, attrs);
|
}
|
|
@Override
|
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
try {
|
return super.onInterceptTouchEvent(ev);
|
} catch (IllegalArgumentException e) {
|
e.printStackTrace();
|
} catch (ArrayIndexOutOfBoundsException e) {
|
e.printStackTrace();
|
}
|
return false;
|
}
|
|
}
|