Skip to content

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. #6

@raj123456789123456789

Description

@raj123456789123456789

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)

        return fillFromRight(recycler, delta);
    if (direction == TOP)
        return fillFromTop(recycler, delta);
    else return dy;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions