You can't. Imagine your list has 1000 items. Your memory usage would
prevent the app from functioning. list cell re-use is used to work
around that.

However, since you are anyhow programmatically filling the list items,
you can simply pull the required information from your data source. No
need to ask the list.

On Mar 16, 1:21 am, Revathi K J Ramanan <[email protected]>
wrote:
> Hi,
>
> I have eight elements in my list.
>
> Initially only six items are visible. When I scroll down the view, the
> first and second elements are not visible.
>
> I use the getChildAt() api to get the ID of the first and second
> elements for accessing them.
>
> But I get NULL POINTER  EXCEPTION as getChildAt() returns only the
> visible elements count.
>
> How can I get the handle for the first and second elements?
>
> Can anybody help me regarding this?
>
> Any help would be of really great use.
>
> Thanks in advance.
>
> Revathi KJ

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to