SimpleDraweeView not resizing after scaling image in fresco

后端 未结 2 1386
傲寒
傲寒 2020-12-21 05:07

I\'m using fresco to display images in a list view. however i have an issue.

when i scale my image using methods that maintain aspect ratio like CENTER_CROP, and the

2条回答
  •  鱼传尺愫
    2020-12-21 05:40

    I strongly recommend that you read the Fresco documentation. All of your questions here are already answered there.

    Drawee view does not support ImageView attributes (adjustViewBounds, getImageMatrix, etc.). See the documentation.

    Read about intrinsic dimensions, again, in the documentation here.

    If you really need to dynamically resize your view, with all of the disadvantages that come with that, you can do that by using a controller listener as explained here.

    Hope that helps and let me know should you have any more questions.

提交回复
热议问题