HeaderGridView icon indicating copy to clipboard operation
HeaderGridView copied to clipboard

Remove headerView issue

Open Arash-gm opened this issue 10 years ago • 0 comments

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.

Arash-gm avatar Oct 27 '15 14:10 Arash-gm