Android Question Horizontal and Vertical Image Scrolling

anglia

Member
Licensed User
Longtime User
I've got a large chart diagram that I've chopped into 40 horizontal x 20 vertical image files (PNG).
All of the 800 images are square (256 x 256 pixels) and on average are about 30KB in size.

I want to be able to scroll the images horizontally and vertically to view any part of the chart.

I've looked at warwound's OSMDroid and Erel's Sliding Panels, but I can't get both horizontal and vertical scrolling.

Does anyone have any ideas about other methods I can look at or can suggest ways that I can do this.

Thanks

anglia
 

Cableguy

Expert
Licensed User
Longtime User
Upvote 0

anglia

Member
Licensed User
Longtime User
Thanks Cableguy

I've looked at the 2DCSV example but it seems that it works only on a single image and lets you move around and look at different areas of the single image.

That's not what I want. I want to be able to display one of the 800 images and have a button to replace the image with an adjacent image, sliding in from above, below left or right.

I guess that Erel's SlidingPanels example is the nearest thing to what I'm after, but I need to be able to slide panels vertically AND horizontally.

I hope someone can suggest a way of doing this.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
You can always try to create your own custom view and make it act exactly as you want...
ie: place a panel to be the view parent (or use mBase for it) place an array of image views, and finally add a scrollbar to each side (V/H)
Then code away!
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Additionally check if 800 images loaded at once may result in OOM.

256x256x4 byte = 256kb for each image approx. 4 = 1mb. At 800 images you´ll need about 200 mb of ram (probably OOM)
 
Upvote 0
Top