mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-04-28 12:17:57 +03:00
ListView.findViewById(): iterate header and footer views even if invisible
This commit is contained in:
parent
68b8af1e1c
commit
f2065e31a4
1 changed files with 18 additions and 0 deletions
|
@ -3626,4 +3626,22 @@ public class ListView extends AbsListView {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public View findViewById(int id) {
|
||||||
|
View view = super.findViewById(id);
|
||||||
|
if (view != null)
|
||||||
|
return view;
|
||||||
|
for (FixedViewInfo info: mHeaderViewInfos) {
|
||||||
|
view = info.view.findViewById(id);
|
||||||
|
if (view != null)
|
||||||
|
return view;
|
||||||
|
}
|
||||||
|
for (FixedViewInfo info: mFooterViewInfos) {
|
||||||
|
view = info.view.findViewById(id);
|
||||||
|
if (view != null)
|
||||||
|
return view;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue