Status Update
Comments
am...@google.com <am...@google.com> #2
Another workaround, getting the ActionBar size at run-time:
TypedValue typed_value = new TypedValue();
getTheme().resolveAttribute(android.support.v7.appcompat.R.attr.actionBarSize, typed_value, true);
swipe_refresh_layout.setProgressViewOffset(false, 0, getResources().getDimensionPixelSize(typed_value.resourceId));
TypedValue typed_value = new TypedValue();
getTheme().resolveAttribute(android.support.v7.appcompat.R.attr.actionBarSize, typed_value, true);
swipe_refresh_layout.setProgressViewOffset(false, 0, getResources().getDimensionPixelSize(typed_value.resourceId));
lo...@gmail.com <lo...@gmail.com> #3
I am experiencing this too...
lo...@gmail.com <lo...@gmail.com> #4
Another workaround might help
handler.postDelayed(new Runnable() {
@Override
public void run() {
initiateRefresh();
}
}, 1000);
handler.postDelayed(new Runnable() {
@Override
public void run() {
initiateRefresh();
}
}, 1000);
lo...@gmail.com <lo...@gmail.com> #5
same problem here.
am...@google.com <am...@google.com> #6
Same issue here. I am calling an AsyncTask (that calls setRefreshing) from onResume.
au...@google.com <au...@google.com> #7
Same here. android.support.v4 v 21.0.0
lo...@gmail.com <lo...@gmail.com> #8
Problem still exists with android.support.v4:21.0.3.
au...@google.com <au...@google.com> #9
[Comment deleted]
lo...@gmail.com <lo...@gmail.com> #11
FWIW: a workaround that seems to work (even without the delay):
final boolean refreshing = true;
swipeToRefreshLayout.post(new Runnable() {
@Override public void run() {
swipeToRefreshLayout.setRefreshing(refreshing);
}
});
final boolean refreshing = true;
swipeToRefreshLayout.post(new Runnable() {
@Override public void run() {
swipeToRefreshLayout.setRefreshing(refreshing);
}
});
am...@google.com <am...@google.com> #12
[Comment deleted]
Description
This is my understanding of the spec after reading
Granted I've made a modification so that the view is not in "shift mode" with 4 items. Most, if not everyone, I've shown the default implementation to thinks the shift mode looks bad. But I don't think I messed up anything as I've only changed the value of a private boolean field.
Please see the attached screenshot. Note there is no space between the + shield and bound of the text view "Safety".