Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does load resources from Content instead of Resource mean?

I am trying to optimize my Xamarin.Forms application and watching this video: Optimizing App Performance with Xamarin.Forms it mentioned the following:

enter image description here

Load Images from Content instead of Resource

Looking at this link: Working with Images I can see no mention of loading from Content only loading from Resources

So my question is what does "Load images from Content" this mean? and how do I do this?

like image 694
User1 Avatar asked May 04 '16 10:05

User1


1 Answers

Instead of embedding images as resources into your assembly, add them as bundled content in your project. They will then be packaged into your app (.apk / .ipa) as content you can load from the "file system".

i.e. Do not use Embedded Resource but Content, Bundle Resource, AndroidResouce, etc... as the build type.

  • Content/Local images - displaying images shipped with the application, including resolving native resolutions like iOS Retina or Android high-DPI versions of an image.
  • Embedded images - images embedded as an assembly resource.
like image 116
SushiHangover Avatar answered Oct 23 '22 04:10

SushiHangover