[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-21 Thread rious.delie
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;

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-08 Thread jamesc
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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-07 Thread jamesc
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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-07 Thread rious.delie
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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-06 Thread jamesc
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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-06 Thread rious.delie
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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-06 Thread rious.delie
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

[android-developers] Re: List Item (a view) order changes unexpextedly while (fast) scrolling in a ListView

2010-09-05 Thread rious.delie
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