Using ImageView for Panoramic View

Can I use ImageView to draw a panoramic image? I.E. When you go to the end of the right edge of the panoramic image, it should start showing the left edge of the image. I know there is a panoralk project for Android, but I thought about it manually. Right now I have scrolling and scaling using the Android matrix.

+7
source share
2 answers

Yes, it is possible, but you also need to have a scroll.

0
source

You can try a subclass of ImageView and implement onTouchEvent () to listen for a userinput that will change the current focal point. If the focal point is moved, redraw the image on an off-screen map, for example. with matrix.postTranslate (deltaX, deltaY) and redraw the part of the image that has been shifted outside from the opposite side.

0
source

All Articles