natario1 / ZoomLayout

2D zoom and pan behavior for View hierarchies, images, video streams, and much more, written in Kotlin for Android.
https://natario1.github.io/ZoomLayout
Apache License 2.0
1.05k stars 147 forks source link

layout directly zooms to max zoom #205

Closed tusharshah1692 closed 3 years ago

tusharshah1692 commented 3 years ago

when app is opened the zoom layout directly zooms to max. How can we show normal view and zoom once touched screenshot-1626783913954 screenshot-1626783900030

markusressel commented 3 years ago

You can use app:transformation="centerInside" to make the content fill up the whole screen, see: https://natario1.github.io/ZoomLayout/docs/zoom-apis

tusharshah1692 commented 3 years ago

You can use app:transformation="centerInside" to make the content fill up the whole screen, see: https://natario1.github.io/ZoomLayout/docs/zoom-apis

did not work can directly make at min zoom by default when open the screen

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity in the last 20 days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

jerinamathews commented 1 year ago

Am also facing this issue. Wehn the image is loaded it goes directly to max zoom. by default it should be in 1x scale right?

markusressel commented 1 year ago

Correct. If you can provide more info on this, please open a new issue so we can investigate it. Without an example setup it will be hard though.