Reputation: 93
I'm creating app using Xamarin.Forms both for android and iOS. In my app I have a lot of images, for now I don't have server for backend and storing all images and then downloading them via application. All images are stored in app. I have a two options:
As I said earlier I have more than 200 images and my question is: What is the best approach to storing images in Xamarin.Forms? Is any loading speed difference between storing images as resources in shared project and separate in each platform?
Android require at least 5 different sizes, iOS 3 so I have to create 8 different copies of the same image...
If I will store image in shared library, what size should I pick? Will be difference in performance between devices with small and big screen during scalling images?
Upvotes: 2
Views: 788
Reputation: 437
You can have svg images as embeddedresource in .netStandard porject, which will work for all android and iOS resolutions.
Upvotes: 1