问题
I am using this library
I am trying to create app with minimal possible zoom. In my application I have small area where the images are presented as slide show. But the images are big so when kenburns effect starts it it zoomed too much.
How can I set the zoom level ?
回答1:
You need to create your own TransitionGenerator
. If you want the keep the random movement and control the zoom, a good place to start is to base your custom TransitionGenerator
off this one. The highlighted line (120) uses a random zoom factor. Hardcoding it will do what you need.
来源:https://stackoverflow.com/questions/46876450/create-kenburns-with-minimum-possible-zoom