fresco icon indicating copy to clipboard operation
fresco copied to clipboard

can not set image width and height,no example

Open yufan2014 opened this issue 11 years ago • 2 comments

can not set image width and height,no example

yufan2014 avatar Sep 22 '15 14:09 yufan2014

you can see http://fresco-cn.org/docs/resizing-rotating.html#_

yamateh avatar Sep 23 '15 05:09 yamateh

You don't have to directly set the height and width of your image. You set them for your View, usually in XML as for any Android view. Fresco scales your image to match.

If the image is much larger than the view, and you can't get a smaller image, then you should use resizing as @yamateh says.

tyronen avatar Sep 23 '15 14:09 tyronen