> Oy.
> Double oy.

lol, now do you see why I didn't mention it in my initial post.  I do
thank you for taking a crack at solving my problem anyway!

> If I had to guess, your ListView is not being added to any parent, so
> there is no need for it to ever call getView() on the adapter.

I don't believe that is the case, since I can set a background color
on the ListView, and I can see it at the location and size that was
specified.  Also, if I stop using my custom ListAdapter and substitute
one that just displays a simple list of strings, it works fine.  There
is one puzzling aspect, however.  When it displays my list it draws it
with the greyish bar at the bottom which I usually see when the list
has more items than can fit and can be scrolled.  However, it should
have only 3 items and not be scrollable.  Also, I do not see the
little scroll bar to the right.  Does this give you any clue as to
what might be going on?  As I said, if I set up a pure Java
application and use a custom ListView and ListAdapter, it seems to
work fine.

Thanks


On May 25, 1:57 pm, Mark Murphy <[email protected]> wrote:
> John Gaby wrote:
> > I am writing a c++
> > wrapper for the Java.
>
> Oy.
>
> > In the environment I am talking about, the
> > ListView is created via a call from a c++ module.
>
> Double oy.
>
> > However, on the
> > Java side, I can see the ListView and it's adapter being created.  I
> > can see calls to the adapter, and as I said, I get a call to the
> > getCount and I can see that it returns 3.  I get calls to the other
> > methods I mentioned, and they all return the appropriate numbers.
> > However, the getView method is never called at all, and the list
> > appears empty.
>
> If I had to guess, your ListView is not being added to any parent, so
> there is no need for it to ever call getView() on the adapter.
>
> --
> 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 *Advanced* Android Development_
> Version 1.5 Available!

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