2D zoom and pan behavior for View hierarchies, images, video streams, and much more, written in Kotlin for Android.
APACHE-2.0 License
Bot releases are hidden (Show)
Published by natario1 almost 6 years ago
ZoomEngine.SimpleListener
class: it extends ZoomEngine.Listener
, but instead of a matrix, provides the zoom and pan values. (#59)ZoomEngine
using addListener
instead of passing one to the constructor. Old constructor is deprecated. (#59)ZoomEngine.setContentSize(RectF)
is deprecated. Please use ZoomEngine.setContentSize(float, float)
. You can optionally pass a boolean to apply the engine transformation. (#59)ZoomEngine.setContainerSize(float, float)
lets you override the view container size. Normally you don't need this because the container size is determined using a layout listener. But sometimes you might. (#59)setAnimationDuration
API to set the duration of pan/zoom animations (#59)Published by natario1 over 6 years ago
Published by natario1 over 6 years ago
zoomIn()
and zoomOut()
(#27)setTransformation
API (#28)app:transformation
and app:transformationGravity
XML attributes (#28)Both things will control the default transformation that is applied when the content is laid out for the first time. The default value for transformation is TRANSFORMATION_CENTER_INSIDE
and the default gravity is Gravity.CENTER
.
TRANSFORMATION_CENTER_CROP
(#28)TRANSFORMATION_NONE
(#28)Published by natario1 over 6 years ago
Fixed a bug with flings that caused the engine to hang (#18).
Published by natario1 about 7 years ago
Published by natario1 about 7 years ago
Fixed some serious bugs (and improved support) for the case when hasClickableChildren is set to false, or is changed during layout.
Published by natario1 about 7 years ago
This release fixes a lot of bugs and flickers that were happening.
Published by natario1 about 7 years ago
This release improves stability and adds new features.
moveTo()
api to animate both zoom and pan concurrentlysetMaxZoom()
and setMinZoom()
APIsZoomLogger
to read or shut down logsPublished by natario1 about 7 years ago
First release.