forked from sephiroth74/ImageViewZoom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e390db7
commit b212d73
Showing
3 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
ImageViewZoom | ||
============= | ||
|
||
Android ImageView widget with zoom and pan capabilities | ||
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: | ||
|
||
* setImageDrawable( Drawable drawable ) | ||
* setImageBitmap( final Bitmap bitmap, final boolean reset ) | ||
* setImageBitmap( final Bitmap bitmap, final boolean reset, Matrix matrix ) | ||
* setImageBitmap( final Bitmap bitmap, final boolean reset, Matrix matrix, float maxZoom ) | ||
|
||
|
||
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, true, matrix ); |