Re: [android-developers] Re: Scrolling large image - working good but slow

2009-11-12 Thread SoftwareForMe.com SoftwareForMe.com
ImageView works remarkably well. In our case, we have users input updating scroll and zoom values, a custom animator [potentially] updating scroll and zoom values, and network code updating the image data. We found better performance using SurfaceView with a pattern like this (psudo-code, revised t

Re: [android-developers] Re: Scrolling large image - working good but slow

2009-11-12 Thread Lee Laborczfalvi
To render to a SurfaceView you need to get the SurfaceHolder, lock it and then draw to the Canvas and finally unlock it. Have you considered an ImageView and just calling invalidate and doing your drawing in onDraw? Lee On Fri, Nov 13, 2009 at 9:32 AM, Genc wrote: > Hi Scott. > > Thanks for gre

[android-developers] Re: Scrolling large image - working good but slow

2009-11-12 Thread Genc
Hi Scott. Thanks for great tips. I've changed my code and not using Gestures any more, just onTouch method and handling ACTION_MOVE motion. It's good up to this point. However, can you give a little sample code about blting a bitmap to surface? How can I do this? Thanks On Nov 12, 8:18 pm, "S