@Override
    protected boolean checkLayoutParams(ViewGroup.LayoutParams p) {
        return p instanceof LayoutParams && super.checkLayoutParams(p);
    }
We only want the current page that is being shown to be focusable.
library/src/main/java/com/daimajia/slider/library/Tricks/ViewPagerEx.java