fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Animate scaling in SimpleDraweeView

Open nishantjain91 opened this issue 11 years ago • 4 comments

Is there any way to animate scale type of simpleDraweeView from CROP_CENTER to CENTER_INSIDE?

nishantjain91 avatar Jul 01 '15 20:07 nishantjain91

Unfortunately this is not supported out of the box. You could try by setting the matrix instead of the scaletype with GenericDraweeHierarchyBuilder.setActualImageMatrix. Then you could perhaps animate the matrix from one to the other. But we'd first have to expose GenericDraweeHierarchy.setActualImageMatrix, and even then this would be tricky to do. If you decide to play with this, you can use ScalingUtils.getTransform to get the actual matrix for a particular scale type.

plamenko avatar Jul 06 '15 21:07 plamenko

Thanks. I'll try that

nishantjain91 avatar Jul 08 '15 08:07 nishantjain91

@nishantjain91 have you find any sulotion?

LiuDeng avatar Dec 16 '15 04:12 LiuDeng

Method setActualImageMatrix is deprecated with comments "This is not something that you want".

Is there any alternative for this method.

sagartrehan avatar Feb 07 '16 12:02 sagartrehan