Hi, I think you should add this couple of lines to your code as if you try to call setRefreshing(true) programmatically the drawable animation won't show.
public void setRefreshing(boolean refreshing) {
if (refreshing)
mRefreshDrawable.setPercent(1f);
if (mRefreshing != refreshing) {
setRefreshing(refreshing, false /* notify */);
}
}
Hi, I think you should add this couple of lines to your code as if you try to call setRefreshing(true) programmatically the drawable animation won't show.
public void setRefreshing(boolean refreshing) { if (refreshing) mRefreshDrawable.setPercent(1f); if (mRefreshing != refreshing) { setRefreshing(refreshing, false /* notify */); } }
Regards and thanks for your contribution. Danny