Skip to content Skip to sidebar Skip to footer

Make Kenburnsview Fit And Fill Given Area

My App uses KenBurnsView (wonderful piece of code, thanks!), and it works well with ScaleType.FIT_CENTE mode, but some users just prefer to see the whole, non cropped image instead

Solution 1:

You can take two different approaches:

  1. Use a standard ImageViewtogether with KenBurnsView and switch visibilities according to what your users want to see.

  2. Write your own TransitionGenerator that doesn't do any transition at all. You can find some information about how to do it here: Define zoom/pan start position with KenBurnsView

IMO, the former approach is much simpler and makes more sense.

Post a Comment for "Make Kenburnsview Fit And Fill Given Area"