Reputation: 11
The app that i'm building has screens with background images. But i'm facing a lot of problems with the dimensions for each device. I don't know if is a problem with the name convention of the .png files or if i need to do something extra.
Here is my files' names, and the dimensions:
Default.png (320 x 480), [email protected] (640 x 960), [email protected] (640 x 1136), [email protected] (750 x 1334), [email protected] (1242 x 2208)
They're all placed on the resources folder, but i think xamarin is reading only the first file, because it duplicate the image to fit the whole screen, no matter in what device simulator i'm on. Somebody please give me some pointers, because i ran out of ideas.
Upvotes: 1
Views: 1081
Reputation: 14463
Added in iOS 7, Asset Catalogs Image Sets contain all the versions or representations of an image that are necessary to support various devices and scale factors for an app. Instead of relying on the image assets filename , Image Sets use a Json file to specify which image belongs to which device and/or resolution. This is the preferred way to manage and support images in iOS (from iOS 9 or greater).
Details refer to here.
Upvotes: 0