Skip to content

Crash the SwipeRefreshLayout #3

Open
@yoavst

Description

@yoavst

SwipeRefreshLayout (from support v4 19.1) can has only 1 child.
Currently my solution is to check if the parent is that, and then get its parent (should also check if he has parent, but in my code it always has a parent):

ViewGroup parent = (ViewGroup) mListView.getParent();
            // Start editing
            if (parent instanceof SwipeRefreshLayout) {
                parent = (ViewGroup) parent.getParent();
            }
            // End editing

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