Patrick Plaatje wrote:
> What i'm currently experiencing though is that the getView method in my
> custom adapter is only executed for the items drawn on the screen

Correct. This is a good thing (imagine 1,000 rows).

> and
> other views are loaded when they are within the view port.

Likewise correct.

> because i am experiencing NPE's when i scroll (and a
> new view is in the listview).

You are presumably failing in your getView() implementation, perhaps
because you are incorrectly recycling a row or something. Your stack
trace (via adb logcat, DDMS, or the DDMS perspective in Eclipse) should
help.

BTW, here's an excerpt from one of my books that covers a lot of this stuff:

http://commonsware.com/Android/excerpt.pdf

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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