so sorry for late reply,
the one that you post is the old one, james..
and, yeah, the problem is still not solved yet,
my only solution is to create new view all the time:
public View getView(int position, View convertView, ViewGroup
parent) {
ViewHolder viewHolder;
Hi
Sorry, I think I misunderstand you last post. Which of the two
methods is the 'old' one (with the 'random order' problem) and which
is the 'new' one (where the problem has gone away)?
I would assume that the new/correct version is this one?:
public View getView(int position, View
Hi
1) I'm still not sure why you're doing the measuring yourself (as I'd
use a layout xml file to declare the list item's View, and then
inflate it/set the values in the adapter's getView() call.
2) I'm guessing that since you are using an adapter and the view
holder, that there's an issue with
Okay, great, you are right, james..
there is something wrong on the getView implementation, still not sure
why, but my problem is solved by, something like this:
@Override
public View getView(int position, View convertView, ViewGroup
parent) {
ViewHolder viewHolder;
if
OK. I've had a quick look.
1) I take it that your View (MyView) is the item in the ListView?
2) Why are you doing the measuring (and implementing onDraw())? I
would have thought that you should be using a layout to declare the
ListView item and then backing that with a BaseAdapter
thank you,
1) yes, it is an item on a listview, i populate some numbers of it on
a listview.
2) i need to set the height of the view on runtime, because the height
of the view is the variable of width (height = f(width)),
it is just as simple as the TextView, which can determine how many
lines
i think i have to try using scrollview instead of listview..
On Sep 7, 9:55 am, rious.delie rious.de...@gmail.com wrote:
thank you,
1) yes, it is an item on a listview, i populate some numbers of it on
a listview.
2) i need to set the height of the view on runtime, because the height
of the
somebody please...
--
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
8 matches
Mail list logo