Skip to content

Android library that makes an imageview or imageButton zoomable

Notifications You must be signed in to change notification settings

Kodak1234/ImageZoomBehavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ImageZoomBehavior

Android library that makes an imageview or imageButton zoomable

Gestures supported

  • Pan
  • Zoom

Double tap too zoom in or zoom out is currently not supported.

To implement double tab

Use these methods

Note: Calling these methods may cause unintended effect.

scale(float zoom): Call from your code to zoom.

toCenter(): Call to animate back to original position.

updateFrame(): Always call this method when ever you change the size, scale, or the location of the view.

Usage

add app:layout_behavior="yourPackage.ImageZoomBehavior" to the xml of your imageView.

About

Android library that makes an imageview or imageButton zoomable

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages