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 (non moving in that case), which works pretty well with standard ImageView, but fails miserably with KenBurns:
if (XenoAmp.getWpsCover()) {
final KenBurnsView caly = (KenBurnsView) widok.findViewById(R.id.tlo);
if (XenoAmp.getCoverFill()) {
caly.setScaleType(ScaleType.FIT_CENTER);
} else {
caly.setScaleType(ScaleType.CENTER_INSIDE);
caly.pause();
}
}
What happens with Ken is: he stays small and sticks to upper left corner of parent view. How can I fix that without replacing it with standard ImageView?