My problem is similar to ListView getChildAt returning null for visible children, but despite searching I cannot find a solution.
I have a ListView
with a Scroll. The ListView
has 10 items, 7 of which are visible and 3 are hidden by scroll. I also have an external method (out of adapter) that must get all of the children from this ListView
(e.g. using getChildAt()
).
I need all 10 of the items, but the last 3 are null
objects. I've tried code like the following:
getListView().smoothScrollToPosition();
But this doesn't work.
I think that I don't need to post the rest of my code, as the description says everything?
ListView
contains only the visible rows, it doesn't create the views for the invisible children. Why do you need access to all ofListView
's child Views? – ChezRadioGroup
. – Chez