question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

force Image fill all part of SimpleDraweeView area

See original GitHub issue

Hi, 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:closed
  • Created 7 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
oprisnikcommented, Oct 4, 2016

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.

1reaction
oprisnikcommented, Oct 3, 2016

So it doesn’t work for the placeholder image? If so, you have to use placeholderImageScaleType instead of actualImageScaleType in XML (and the corresponding method in Java).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found