You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi your layout manager is very good however i'm getting this error in
private int fill(RecyclerView.Recycler recycler, int dy, boolean apply) {
int delta = direction.layoutDirection * dy;
// multiply the parallex factor
if (apply)
delta = (int) (delta * parallex);
if (direction == LEFT)
return fillFromLeft(recycler, delta);
if (direction == RIGHT)
Actually the error doesn't occur at first run I'm using this inside a
fragment and when I switch tab and come back again and click on any of its
item I start a new activity and when I come back from that activity and
then when I click on any of its items it is giving me this error.
Do you have any suggestions on how I could eliminate this error..
of course ,you can add a defensive if statement “if (view.getParent() == null) addView(view)” in fillFromLeft fillFromTop fillFromRight these three methods.
It is a 'shameless' workaround util i find why.Another truth—— I am a noob in android and this layout manager kind of sucks when you dig deep into RecyclerView:neckbeard:
Hi your layout manager is very good however i'm getting this error in
private int fill(RecyclerView.Recycler recycler, int dy, boolean apply) {
int delta = direction.layoutDirection * dy;
// multiply the parallex factor
if (apply)
delta = (int) (delta * parallex);
if (direction == LEFT)
return fillFromLeft(recycler, delta);
if (direction == RIGHT)
The text was updated successfully, but these errors were encountered: