>
>
> Btw. I re-use the convert view etc. The performance degradation only
> happens when I style the output.
>
>
>
I had a similar problem. When I noticed the increased garbage collection in
my styled listview compared to non-styled, that manifested as choppy
scrolling and bad animation fps
i was trying to tell you use the ViewHolder pattern as in the list
demos...and just added that you can use TwoLineListItem instead of creating
your own..
On Fri, Mar 13, 2009 at 1:15 AM, Mariano Kamp wrote:
> Hi forandroid,
>
> I guess you're talking about the class TwoLineListItem [1], right?
Hi forandroid,
I guess you're talking about the class TwoLineListItem [1], right? Out of
curiosity, not because I am trying to be a smart ass: Why would this be
faster?
Cheers,
Mariano
[1]
http://developer.android.com/reference/android/widget/TwoLineListItem.html
On Wed, Jan 14, 2009 at 10:51
Mariano Kamp wrote:
> public View getView(int position, View convertView, ViewGroup parent) {
> View rowView = convertView != null ? convertView : activity
> .findViewById(R.layout.entry_row);
Why are you attempting to use a single row View for every entry in the
list? In other words,
Ummm... don't do that? Your slow code is doing tons of work, so it is
going to be slow. If you just can't avoid doing all of that work for each
item, you might need to fall back on the approach of formatting the text in
a separate thread, based on the list view API demo for when retrieving item
use the efficient list adapter
And also you can use the TwoLineListitem
On Wed, Jan 14, 2009 at 2:23 PM, Mariano Kamp wrote:
> *bump* ;-)
>
>
> On Sun, Jan 11, 2009 at 7:10 PM, Mariano Kamp wrote:
>
>> Hi,
>> I have a performance problem in a ListView. The problem seems to be that
>> it ta
*bump* ;-)
On Sun, Jan 11, 2009 at 7:10 PM, Mariano Kamp wrote:
> Hi,
> I have a performance problem in a ListView. The problem seems to be that
> it takes too long to setup each individual row. It scrolls very, very
> painfully slow, because of that.
>
> The actual code renders an Entry diff
7 matches
Mail list logo