Skip to content

Commit 1e51bb1

Browse files
committed
Center image in zoom sample
to have a verification if it's working
1 parent 7cacf2d commit 1e51bb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/info/touchimage/demo/AnimateZoomActivity.kt

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class AnimateZoomActivity : AppCompatActivity(), TouchImageView.OnZoomFinishedLi
2626
binding.imageSingle.isZoomed.not() -> binding.imageSingle.setZoomAnimated(0.9f, 0.5f, 0f, this)
2727
}
2828
}
29+
30+
// It's not needed, but help to see if it proper centers on bigger screens (or smaller images)
31+
binding.imageSingle.setZoom(1.1f, 0f, 0f)
2932
}
3033

3134
@SuppressLint("SetTextI18n")

0 commit comments

Comments
 (0)