Hi,
We have a jpeg image and a json string of rectangles.
For example let the sample image be called [login to view URL] (attached along with) and the json string looks like as follows:
String jsonComic = "[[{'startX':4,'startY':5,'endX':205,'endY':239},{'startX':219,'startY':4,'endX':482,'endY':241},{'startX':493,'startY':4,'endX':737,'endY':240},{'startX':4,'startY':258,'endX':283,'endY':493},{'startX':296,'startY':255,'endX':560,'endY':374},{'startX':295,'startY':386,'endX':564,'endY':494},{'startX':574,'startY':256,'endX':738,'endY':491},{'startX':4,'startY':513,'endX':183,'endY':745},{'startX':195,'startY':512,'endX':496,'endY':746},{'startX':505,'startY':511,'endX':737,'endY':746},{'startX':5,'startY':762,'endX':217,'endY':1002},{'startX':229,'startY':765,'endX':467,'endY':1002},{'startX':478,'startY':765,'endX':737,'endY':999}],[{'startX':4,'startY':5,'endX':205,'endY':239},{'startX':219,'startY':4,'endX':482,'endY':241},{'startX':493,'startY':4,'endX':737,'endY':240},{'startX':4,'startY':258,'endX':283,'endY':493},{'startX':296,'startY':255,'endX':560,'endY':374},{'startX':295,'startY':386,'endX':564,'endY':494},{'startX':574,'startY':256,'endX':738,'endY':491},{'startX':4,'startY':513,'endX':183,'endY':745},{'startX':195,'startY':512,'endX':496,'endY':746},{'startX':505,'startY':511,'endX':737,'endY':746},{'startX':5,'startY':762,'endX':217,'endY':1002},{'startX':229,'startY':765,'endX':467,'endY':1002},{'startX':478,'startY':765,'endX':737,'endY':999}]]";
The coordinates define the rectangles (panels) on the image (the coordinates present above correspond to the image attached).
So initially the first panel should open (best fit on the android screen). In case I tap on the right half of the screen, the next panel should be displayed and so on.
The caveat here is that the transition from the first panel to the second panel should animate (it might involve translation and zoom in/out).
An app that does something similar is comixology (You might want to download a free comic to view how the transition works).
I expect a special view which takes a bitmap and json string as input to achieve these transformations.