What is correct path for loading placeholders in Xamarin Android projects?
See original GitHub issueI have an image in a Xamarin Android project that does not seen to load. In the console, I’m getting
Not found: placeholderProfileImage.png from Filepath
every time an image view comes onto the screen.
My call looks like this:
// use FFImageLoading library to asynchronously:
ImageService.Instance
.LoadUrl(acquaintance.SmallPhotoUrl, TimeSpan.FromHours(Settings.ImageCacheDurationHours)) // get the image from a URL
.LoadingPlaceholder("placeholderProfileImage.png") // specify a placeholder image
.Transform(new CircleTransformation()) // transform the image to a circle
.Error(e => System.Diagnostics.Debug.WriteLine(e.Message)) // if there is an error loading the image, print it to debug console
.IntoAsync(viewHolder.ProfilePhotoImageView); // load the image into the ImageView
The placeholderProfileImage.png
exists as an Android resource in both the drawable and mipmap folders, but FFImageLoading can’t seem to find it. Do I need to provide a full path?
This all works great in my Xamarin Forms project, with the same placeholder image in the drawable folder.
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Build Properties - Xamarin
This document will list all supported properties in the Xamarin.Android build process.
Read more >Some image path are not loaded in ffimageloading ...
I am working in xamarin.forms. I have one list page where I want to load set of images. Images are load from web...
Read more >Activity embedding
Two activity splits layed out left to right but with different split ratios. Placeholders. Placeholder activities are empty secondary activities that occupy an ......
Read more >Easily Load Images into Recyclerview using FFImageLoading
Loading images from the internet using a normal web request could crash ... Xamarin Android Course ⇢ http://bit.ly/complete-xamarin-course1 ...
Read more >Creating Mobile Apps with Xamarin.Forms: Infrastructure
Go into Visual Studio or Xamarin Studio, and load any Xamarin.Forms solution created so far, such as NoteTaker1.
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
On Android:
What’s not working for you?
CachedImage::LoadingPlaceholder I think?