private void init() {
        setProgressViewOffset(false,
                (int) getResources().getDimension(R.dimen.refresh_layout_start_offset),
                (int) getResources().getDimension(R.dimen.refresh_layout_end_offset));
    }
SwipeRefreshLayout compatible with pre Lolly pop android versions
(fixed hiding progress view on top of the screen)
app/src/main/java/com/rozdoum/socialcomponents/views/SwipeRefreshPreLollyPop.java