Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Jake Basile
By tiling the image, do you mean splitting it up and putting it back together with HTML to display in the WebView? How does this avoid heap size problems? Does WebView do some magic behind the scenes? I'd like to avoid writing my own ImageView zoomer if that is going to open up more problems

Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Mark Murphy
On Tue, Apr 12, 2011 at 11:20 AM, Jake Basile jakerbas...@gmail.com wrote: By tiling the image, do you mean splitting it up and putting it back together with HTML to display in the WebView? No, I mean splitting it up and showing only the portions that are needed based on the center and zoom

Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Jake Basile
Ahh, ok. I was checking if there was something I was missing that does that automatically. Do you know of any open source control that does something similar, as it seems like a pretty common thing? -- Jake Basile http://jakebasile.com/ On Tue, Apr 12, 2011 at 6:25 PM, Mark Murphy

Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Mark Murphy
On Tue, Apr 12, 2011 at 7:20 PM, Jake Basile jakerbas...@gmail.com wrote: Ahh, ok. I was checking if there was something I was missing that does that automatically. Do you know of any open source control that does something similar, as it seems like a pretty common thing? Off the top of my

Re: [android-developers] WebView Image Scaling

2011-04-12 Thread Jake Basile
Oh well, thanks for the info. I'll figure something out - probably rolling my own. It does seem like something common enough that it should be in the default widgets, maybe in some future version. -- Jake Basile http://jakebasile.com/ On Tue, Apr 12, 2011 at 7:42 PM, Mark Murphy

[android-developers] WebView Image Scaling

2011-04-11 Thread Jake Basile
I am writing an image viewer that downloads a PNG from a remote server, saves it to storage, and then opens it in a WebView so that I get multi-touch zoom for free. These images are usually going to be documents, so the user will want to be able to zoom in very far. I am sending down images

Re: [android-developers] WebView Image Scaling

2011-04-11 Thread Mark Murphy
On Mon, Apr 11, 2011 at 1:42 PM, Jake Basile jakerbas...@gmail.com wrote: I am writing an image viewer that downloads a PNG from a remote server, saves it to storage, and then opens it in a WebView so that I get multi-touch zoom for free. These images are usually going to be documents, so the