public int getCurrentPosition(){

        if(getRealAdapter() == null)
            throw new IllegalStateException("You did not set a slider adapter");

        return mViewPager.getCurrentItem() % getRealAdapter().getCount();

    }
get the current item position
@return
library/src/main/java/com/daimajia/slider/library/SliderLayout.java