标签:
今天开始使用谷歌的SwipeRefreshLayout,会记下一些坑
1.手动调用setRefreshing(true)不会出现刷新动画
原因是:SwipeRefreshLayout indicator does not appear when the setRefreshing(true)
is called before the SwipeRefreshLayout.onMeasure()
解决方法是:http://stackoverflow.com/questions/26858692/swiperefreshlayout-setrefreshing-not-showing-indicator-initially
我选择的是
mSwipeRefreshLayout.setProgressViewOffset(false, 0, (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 24, getResources().getDisplayMetrics())); mSwipeRefreshLayout.setRefreshing(true);
标签:
原文地址:http://www.cnblogs.com/baron89/p/4618511.html