Well I switched to using BaseAdapter but that didn't help.  If I set
the list before I added the ListView to it's ViewGroup, it would work,
but if I changed the list after it was added and then called
notifyDataSetChanged, I ended up with an empty list, just like before.

So it got me to thinking that I has something fundamentally wrong
here.  I played around with a pure Java program to see if I could
figure it out, and finally determined that the problem had NOTHING to
do with the ListView or the ListAdapter at all.  The problem was with
the way I was handling the custom ViewGroup into which I was placing
the ListView.  Anyway I seem to have it working now (although I don't
really understand why what I was doing was causing a problem).

I want to thank you very much for your help.


On May 25, 4:49 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> John Gaby wrote:
> > I have based my adapter on ListAdapter which does not seem to have a
> > notifyDataSetChanged method.
>
> Use BaseAdapter as your base class.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.0
> Available!

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