Open
Description
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
Labels
No labels