I\'m using android.support.v4.widget.SwipeRefreshLayout with android.support.v7.widget.RecyclerView. On fragment view creation I need to show <
android.support.v4.widget.SwipeRefreshLayout
android.support.v7.widget.RecyclerView
This is a reported bug (reported here) and a workaround is available:
mSwipeRefreshLayout.setProgressViewOffset(false, 0, (int) TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_DIP, 24, getResources().getDisplayMetrics())); mSwipeRefreshLayout.setRefreshing(true);