Skip to content

Remove headerView issue #7

@Arash-gm

Description

@Arash-gm

i've added HeaderGridView to my project successfully but the problem is i cannot remove headerview or update it. because the below if statement (info.view == v) is always false :

private boolean removeFixedViewInfo(View v, ArrayList<FixedViewInfo> where) {
    int len = where.size();
    int count = 0;
    for (int i = 0; i < len; ++i) {
        FixedViewInfo info = where.get(i);
        if (info.view == v) {
            this.setPadding(this.getPaddingLeft(), getPaddingTop()-v.getMeasuredHeight(), this.getPaddingRight(), this.getPaddingBottom());
            where.remove(i);
            count++;
            break;
        }
    }

    return count > 0;
}

can you help me with this and explain me why this happens? v is a global View which i've used to add header view before.

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