You need to incorporate recycling a la AdapterView. I am willing to
bet that most of those 20 columns and 50 rows are not visible.

On Mon, Oct 4, 2010 at 12:32 PM, Bret Foreman <[email protected]> wrote:
> My app creates a lot of TextView objects and this turns out to be
> really slow. A look at the traceview output reveals that the bulk of
> the time is spent in the TextView methods that grab all the default
> parameters from /res and /util. The thing is, all my TextViews share
> 99% of these parameters. Is it possible to clone a TextView rather
> than create one from scratch? If not, what about if I created a pool
> of TextView objects and reused them?
>
> Just to give some context, I'm generating a spreadsheet to show some
> data provided from an online source and the spreadsheet can be as big
> as 20 columns by 50 rows = 1000 cells, each with a TextView. It takes
> about 25 seconds just to create 1000 TextViews on my Moto Droid.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to