No, I have the report lines in an object and only draw the lines that
are visible for the current scroll values.  It's very fast.

On Jul 14, 8:52 pm, Connie <[email protected]> wrote:
> With Canvas if you have to create the table (in bit map form)
> dynamically does that take a bunch of time?
>
> Connie
>
> On Jul 13, 8:50 pm, Zsolt Vasvari <[email protected]> wrote:
>
>
>
> > In my app, in a generic report viewer, I just draw the lines on a
> > Canvas.  It's very fast and lightweight.   If you send me an e-mail, I
> > can send you my code.
>
> > On Jul 14, 2:02 am, Mark Murphy <[email protected]> wrote:
>
> > > On Tue, Jul 13, 2010 at 1:21 PM, Connie Walsh
>
> > > <[email protected]> wrote:
> > > > I am writing a financial calculator and part of my code is printing
> > > > out an amortization table for 25 - 30 years. Some times there can be
> > > > up to 2000 rows on the page. Here is my code to do this part:
>
> > > Ack!
>
> > > > Should I try to add them as the person scrolls down?
>
> > > You should use a ListView. This will automatically handle scrolling,
> > > will let you recycle your rows to minimize memory consumption, will
> > > only process the rows presently visible to increase execution speed,
> > > etc.
>
> > > --
> > > Mark Murphy (a Commons 
> > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > > Android 2.2 Programming Books:http://commonsware.com/books- Hide quoted 
> > > text -
>
> - Show quoted text -

-- 
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