• Scale Image View Demo 1
  • Scale Image View Demo 2

Scale Image View Demo

This is a demo of Subsampling Scale Image View, a free Android library for the display of large images, with gesture detection for zoom and pan. This demo shows most of the features available.
This custom view can be used to display images in a gallery, or for viewing large images such as building plans. It's easily extendible to add overlaid graphics aligned with the image, for example marker pins or custom shapes.

The project, including the source of this app, is hosted on GitHub at https://github.com/davemorrissey/subsampling-scale-image-view

Image display===================


* Display huge images, larger than can be loaded into memory
* Show high resolution detail on zooming in
* Tested up to 20,000x13,000px, though larger images are slower
* Display images from assets or the file system
* Automatically rotate images from the file system (e.g. the camera or gallery) according to EXIF
* Manually rotate images in 90° increments
* Swap images at runtime

Gesture detection===================


* One finger pan
* Two finger pinch to zoom
* Pan while zooming
* Seamless switch between pan and zoom
* Fling momentum after panning
* Double tap to zoom in and out
* Options to disable pan and/or zoom gestures

Animation===================


* Public methods for animating the scale and center
* Customisable duration and easing
* Optional uninterruptible animations

Easy integration===================


* Use within a ViewPager to create a photo gallery
* Easily restore scale, center and orientation after screen rotation
* Can be extended to add overlay graphics that move and scale with the image
* Handles view resizing and wrap_content layout

Category : Libraries & Demo

Related searches

Reviews (17)

Ram. S. Aug 25, 2019     

Feature to Zoom out from original size image would get a 5 star. Fantastic library.

Ami. A. Sep 6, 2020     

Awesome demo! I will use this library 👍

Tok. T. Jun 21, 2019     

suddenly zoomed when tap with 2 fingers

Tim. K. Apr 24, 2018     

Great demo, thanks a lot for the effort! Would you be able to also implement something to layer images? I have previously used BitmapLibrary to layer images (based on selection, all with the same px) and create one image from them which I then displayed to users - unfortunately I got the OutOfMemoryError but it would be great if something similar could be achieved with your library. Thanks

Ale. V. Mar 22, 2018     

Excellent demo of the library, with extensions and most details showcased.

Rav. Y. Apr 12, 2017     

Great tutorial on github

don. r. May 10, 2016     

If you are writing an app that uses images, i highly recommend you use this app. It takes care of all the image loading and processing , so you don't have to worry about it... if that's not the primary focus of your app. Ill try and contribute to it. It's sightly slow when loading large images. A suggestion would be to load a simple shurnken down version of the image, once displayed , you load it again with more detail .

Cha. A. Mar 10, 2015     

I tried loading 20Mb images (maps) to the control and it works perfectly without lags

Asw. C. May 20, 2016     

Really helped in the time of need! Cudos.

ill. a. May 25, 2016     

Thanks for the great library and great demo. Works perfectly.

and. g. Jun 10, 2014     

This image view is great, thanks for making it and improving on it.

You. K. Aug 20, 2014     

Have a look for this good job

Gan. R. Oct 17, 2014     

Amazing application !!!

Hui. Y. Jun 10, 2014     

a little hard to scroll the viewpager

Her. C. Jun 10, 2016     

Why can't we use our own?!?

Atm. Sep 26, 2017     

This is amazing tutorial

Nit. K. Sep 12, 2014     

Thanx