You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
ListView.findViewById(): iterate header and footer views even if invisible
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user