hi John Gaby
I have had the same issue. Could you please state what you changed in the
end with regurds to handling the custom ViewGroup?
Thanks
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
Thanks for the reply, I was afraid of that. I am writing a c++
wrapper for the Java. In the environment I am talking about, the
ListView is created via a call from a c++ module. However, on the
Java side, I can see the ListView and it's adapter being created. I
can see calls to the adapter,
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
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
John Gaby wrote:
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.
So much for that theory.
Also, if I stop using my custom ListAdapter and substitute
one that just displays a simple list of
Thanks much for your help. The hiearchyviewer is a NICE tool of which
I was unaware. Unfortunately it simply shows that my ListView has no
children (rows). I believe I have discovered the problem, however,
and am able to reproduce it with a pure Java application. It seems
that if I call the
John Gaby wrote:
Thanks much for your help. The hiearchyviewer is a NICE tool of which
I was unaware. Unfortunately it simply shows that my ListView has no
children (rows). I believe I have discovered the problem, however,
and am able to reproduce it with a pure Java application. It seems
I have based my adapter on ListAdapter which does not seem to have a
notifyDataSetChanged method. Should I be using an ArrayAdapter?
Thanks again.
On May 25, 4:21 pm, Mark Murphy mmur...@commonsware.com wrote:
John Gaby wrote:
Thanks much for your help. The hiearchyviewer is a NICE tool of
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/commonsguy
http://commonsware.com/blog |
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
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
11 matches
Mail list logo