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

How set zoom image view to FITXY scale #187

Closed Yahor10 closed 3 years ago

Yahor10 commented 3 years ago

How do I?

I have to setup image with zoom for full size screen(like launch screen), but with zooming...

How to correct configure size of zoomimage for fullscreen?

I need Fullscreen zoomimageview

As same as<ImageView scaleType= "fitXY"> does.

Thanks

Version used

latest

markusressel commented 3 years ago

Afaik this is not possible. The ZoomEngine does not provide this scale type, and honestly I don't think we should. I guess you will have to rescale your image manually to exactly fit the screen dimensions and then load it into ZoomImageView to get the desired effect.

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.