Home

Awesome

ImageViewTouch for Android

Badge

Build Status Download

ImageViewTouch is an android ImageView widget with zoom and pan capabilities. This is an implementation of the ImageView widget used in the Gallery app of the Android opensource project.

Checkout the repository and run the ImageViewTouchTest project to see how it works. Beside the superclass setImageBitmap method it offers the following methods:

If you want to load a new Bitmap with a particular zoom/pan state (let's say the same from another ImageView ), you can call:

Matrix matrix = mImageView1.getDisplayMatrix();
mImageView2.setImageBitmap( bitmap, matrix );

Tweaks

The initial display state can be set, using public void setDisplayType( DisplayType type ), as:

The default display state is `DisplayState.NONE'.

##Usage (Maven) <dependency> <groupId>it.sephiroth.android.library.imagezoom</groupId> <artifactId>imagezoom</artifactId> <version>2.3.0</version> </dependency>

##Usage (Gradle)

dependencies {
	compile 'it.sephiroth.android.library.imagezoom:imagezoom:+'
}

##LICENSE

This software is provided under the MIT license:<br /> http://opensource.org/licenses/mit-license.php

##Author

Alessandro Crugnola