Re: [android-developers] Re: Using an image in a listview

2010-01-07 Thread Patrick Plaatje
Hi, i've tried the list13 implementation, but although scrolling seems smoother then it ever was, i'm kinda displeased with the time it takes to fill the rows with content. I think my main concern is related to the reuse of the rows, rather then how to fill them. I am wondering if there isn't a

[android-developers] Re: Using an image in a listview

2010-01-06 Thread Brion Emde
Are you using any of the techniques shown in the List13.java example in the APIDemos? I have a video example of what can be achieved with such techniques, here: http://www.youtube.com/watch?v=QZ8PoS6ai6U On Jan 6, 8:18 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote: Hi all, for my app

Re: [android-developers] Re: Using an image in a listview

2010-01-06 Thread Patrick Plaatje
Hi Brion, thanks, i will certainly give that a try. But the funy thing is that i'm actually not attaching that much data to my listview rows. I even stripped the images from it and i still have some hickups when scrolling. And it's indeed probably the getview method which tries to attach the data

[android-developers] Re: Using an image in a listview

2010-01-06 Thread Vince
What does your getView code look like. Are re-inflating your row view every time it's called, are there multiple views for the rows etc? Vince On Jan 6, 10:18 am, Patrick Plaatje patrick.plaa...@ndcvbk.nl wrote: Hi all, for my app i'm using a listview to display rss news articles. All goes

Re: [android-developers] Re: Using an image in a listview

2010-01-06 Thread Patrick Plaatje
Hi, i've used the holder method, but adding or omitting this didn;t give me an increase or decrease in performance, my getView method is below: @Override public View getView(int position, View convertView, ViewGroup parent) { // A ViewHolder keeps

[android-developers] Re: Using an image in a listview

2010-01-06 Thread Brion Emde
I see some problems here: // Bind the data efficiently with the holder. holder.titleText.setText(Html.fromHtml(((FeedMessage)Items.get (position)).g etTitle())); holder.descriptionText.setText(Html.fromHtml(((FeedMessage)Items.get (positi on)).getDescription())); Drawable d = null; FeedMessage fm

Re: [android-developers] Re: Using an image in a listview

2010-01-06 Thread Patrick Plaatje
Hi Brion, if this arraylist would be a rather big list, it would be costly indeed, and it is a good suggestion. This list consists of just 10 items (feedmessage objects) though. These feedmessages are just a set of getters and setters (of just small String objects) and are not doin any costly