-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Home
davemorrissey edited this page Mar 12, 2015
·
7 revisions
This wiki is a work in progress, more pages will be added in the coming days
This is a custom image view for Android, designed for photo galleries and displaying huge images. It includes all the standard gestures for zooming and panning images, and provides some extra useful features for animating the image position and scale and rotating the image.
The view is highly configurable, and designed for extension from the ground up. You can easily add your own overlays anchored to points on your image, and customise event detection. See the sample app and its source code for some examples.
The aim of this library is to solve some of the common problems when displaying large images in Android:
- "Bitmap too large to be uploaded into a texture" errors caused by attempting to display images over 2048px wide or high. The view will automatically load images larger than this limit in tiles so no single bitmap is too large to display.
-
OutOfMemoryError
s caused by loading a large image into memory without subsampling. The view subsamples images, then loads high resolution tiles for the visible area as the user zooms in.