Android calls it. More accurately, ListView calls it when it needs rows.
> I can
> see how a row is added in onClick but there does not seem to be a
> direct call to getView anywhere in the code, can someone point me in
> the right direction?
Read _The Busy Coder's Guide to Android Development_, Version 2.8,
Chapter 8 ("Getting Fancy With Lists"). It covers the entire process.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Warescription: Three Android Books, Plus Updates, $35/Year
--
You received this message because you are subscribed to the Google Groups "cw-android" group.
To post to this group, send email to cw-an...@googlegroups.com.
To unsubscribe from this group, send email to cw-android+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cw-android?hl=en.
That is covered on pages 37-38, Tutorial 5 ("Making Our List Be Fancy"),
Step #1 ("Create a Stub Custom Adapter").
In particular:
"We also need to change our data member to be a RestaurantAdapter, both
where it is declared and where it is instantiated in onCreate()."
Now, that's not the clearest, and I will improve that sentence in the
next release, due out tomorrow.
I apologize for any confusion.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Android Consulting/App Development: http://commonsware.com/consulting