Fixed
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));
sa...@gmail.com <sa...@gmail.com> #3
I am experiencing this too...
sa...@gmail.com <sa...@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);
sc...@gmail.com <sc...@gmail.com> #6
Same issue here. I am calling an AsyncTask (that calls setRefreshing) from onResume.
am...@google.com <am...@google.com> #7
Same here. android.support.v4 v 21.0.0
yy...@gmail.com <yy...@gmail.com> #8
Problem still exists with android.support.v4:21.0.3.
Description
I's impossible to replace the menu of a BottomNavigationView.
If you do a clear on the menu before, you got the following exception : java.lang.IllegalStateException: Already in the pool!
If you don't do the clear, it will add the new menu at the end of the old one until you get more than 5 items then you'll get java.lang.IllegalArgumentException: Maximum number of items supported by BottomNavigationView is 5
Expected : A clear followed by an inflate should replace the old menu and should not throw an exception
Nexus 5x
Android 7.1.1
Build tools : 25.0.2
Support design : 25.1.0