R,

Listviews are not meant for data storage in the typical way as for example Listviews in .NET.

Listviews are designed for high volume data. So spend an hour and view this video.
This will show you how to access data and 3 ways of implementing Listviews.

http://www.google.com/events/io/2010/sessions/world-of-listview-android.html



----- Original Message ----- From: "Revathi K J Ramanan" <[email protected]>
To: "Android Discuss" <[email protected]>
Sent: Wednesday, March 16, 2011 1:22 AM
Subject: [android-discuss] Accessing invisible items in the list view while we scroll the list


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 Discuss" 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-discuss?hl=en.


--
You received this message because you are subscribed to the Google Groups "Android 
Discuss" 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-discuss?hl=en.

Reply via email to