Hi Mark,

thanks a lot. I am indeed using the Holder pattern, and it looks like the
Holder object is set to null when the initial listview is loaded.

btw. the excerpt helped a lot!

Regs,

Patrick

2009/12/14 Mark Murphy <mmur...@commonsware.com>

> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Met vriendelijke groet,


Patrick Plaatje

NDC|VBK de uitgevers
Sixmastraat 32, 8915 PA Leeuwarden
Postbus 394, 8901 BD Leeuwarden
T   (058) - 284 5044
M  (06) - 158 966 34

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

Reply via email to