View a Large number of Tiled Images
Note : Everytime i mention an image, you can assume it's located on a remote server.
We have a large image that's too big to display on a mobile device, so we broke it into tiles (MxN).
I need a way to display these tiles on the screen and allow the user to smoothly scroll over them. I cannot store all the tiles in memory at once, i can store upto 9 (3x3 tiles).
Basically, i need to replicate how Google Maps loads images, downloading the tile only if the region is visible to the user, and stitch it up with its neighbors...
Need anything relevant on this topic...
Edit: I forgot to mention, using a webview is not an option since we need to do a little drawing over the images once they ar开发者_运维问答e retrieved.
Thanks for your help! :)
you can look at source of osmdroid, they did something like this and probably it will help you.
Maybe i'm wrong, but another possibility could be to create a web page and show it in the webview.
精彩评论