I\'m using android.support.v4.widget.SwipeRefreshLayout
with android.support.v7.widget.RecyclerView
.
On fragment view creation I need to show <
Thanks, guys.
I`ve just realised that the easiest solution is to call method measure(int, int) with non-zero values) before calling setRefreshing(true). The problem is happening because setRefreshing(true) is calling before onMeasure.
So you need to call:
swipeRefreshLayout.measure(initialWidth, initialHeight);
swipeRefreshLayout.setRefreshing(true);