PlaceholderImageScaleType sometimes doesn't work
See original GitHub issuePlaceholderImageScaleType doesn’t work
-
When I use the attribute of the roundedcorner, placeholderImageScaleType not normal work, like I set, on the system version for Android P’s phone
-
Fresco version:com.facebook.fresco:fresco:2.1.0
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/draweePoiIcon"
android:layout_width="70dp"
android:layout_height="50dp"
android:layout_marginStart="12dp"
android:layout_marginTop="12dp"
android:scaleType="fitCenter"
app:actualImageScaleType="fitCenter"
app:placeholderImage="@drawable/poi_detail_image_place_holder"
app:placeholderImageScaleType="fitCenter"
app:roundedCornerRadius="5dp" />
- The actual rendering shown:
-
The source file used:
-
I hope to get your help. Thank you very much
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Allow a different scale type for placeholder images · Issue #368
We want to have a placeholder image that looks a bit like a 'picture frame' icon - similar to what facebook does in...
Read more >Glide: load drawable but don't scale placeholder
I have an ImageView with variable size (depending on the incoming image) which I set before calling Glide.with().load().into() and I want to use ......
Read more >ScaleTypes - Fresco
ScaleTypes of actual, placeholder, retry, and failure images can all be set in XML, using attributes like fresco:actualImageScaleType .
Read more >The Complete Guide to Lazy Loading Images | CSS-Tricks
Wondering how lazy loading images works? ... down the image to down to a 1×1 pixel and then scale it up to the...
Read more >Picture perfect images with the modern <img> element
We can combine background-image with background-size: cover to set the size of an element's background image and scale the image as large as ......
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
I’ve solved this problem by moving the image resource into the drawable-nodpi file @lynn-kollectin @oprisnik
Thanks @oprisnik. If I set placeholder image programmatically, and I remove fresco:placeholderImage from xml, it works ok no matter using Drawable or resource ID. If I didn’t remove fresco:placeholderImage from xml, it still displayed abnormally. (My those PNG files are in drawable-nodpi)