force Image fill all part of SimpleDraweeView area
See original GitHub issueHi,
When I load an image into SimpleDraweeView
it tries to show all image in it so images corners remain emply, How can I force it to scale image to fill whole area?
I tried most of fresco:actualImageScaleType
but nothing changes at all.here is my layout
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/img_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
fresco:placeholderImage="@drawable/backgrondlayout2"
fresco:actualImageScaleType="centerInside" />
where I am doing wrong? thanks
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
force Image fill all part of SimpleDraweeView area
When I load an image into SimpleDraweeView in fresco liberary it tries to show all image in it so images corners remain empty, ......
Read more >How To Fill All Area Of A Simpledraweeview? - ADocLib
How to adjust image settings to help with sizing scaling and backgrounds.The 'Fill' option will force the image to fill all the way...
Read more >How to fill a box with an image without distorting it
The image should completely fill the box, retaining aspect ratio, and cropping any excess on the side that is too big to fit....
Read more >Using SimpleDraweeView - Fresco
When using Fresco, you will use SimpleDraweeView to display images. These can be used in XML layouts. The simplest usage example of SimpleDraweeView...
Read more >Android Image Transformations - Cloudinary
Resize, crop and transform images, convert formats, apply image effects ... For a full list of all supported image transformations and their ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since it still works for me with the sample code above, I would say the problem is somewhere else in your code. A minimal example to reproduce the issue would be nice. Otherwise just go from the example and gradually add functionality until it fails - then you know where the issue is.
So it doesn’t work for the placeholder image? If so, you have to use
placeholderImageScaleType
instead ofactualImageScaleType
in XML (and the corresponding method in Java).