Enable hardware acceleration?


Use a separate bitmap for each digit?


When scrolling 10 pixels up, only redraw the 10 pixel high area that is new.



On Tuesday, October 30, 2012 8:37:01 AM UTC-5, new_android_dev wrote:
>
> Anyone got any suggestions?
>
> Thanks.
>
> On Thursday, 25 October 2012 21:09:56 UTC+1, new_android_dev wrote:
>>
>> I've been struggling on how to make a very large canvas display in an app 
>> I'm making.
>>
>> Here a picture of what I'm trying to draw:
>> dl.dropbox.com/u/12945652/temp.PNG
>>
>> At the moment I've implemented it like this:
>> https://dl.dropbox.com/u/12945652/RowView.java
>>
>> But sticking everything and repeating calling ondraw is making scrolling 
>> very slow.
>>
>> So I then tried to split the canvas into smaller bitmaps, like this:
>> https://dl.dropbox.com/u/12945652/temp2java.txt
>>
>> But now I'm getting out of memory errors when creating more than 10 
>> bitmaps and then putting them in an ArrayList.
>>
>> Could anyone help please, I'm totally out of ideas on how to implement 
>> this.
>>
>> The second options works very well for smaller data and there is no lag 
>> at all.
>>
>> [Note the x-axis variable can be as big as 30,000]
>>
>

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