Domanda

To manage different screen resolution, in windows 8, we put the different assets in folders named, scale-100, scale-140, scale-180.

For windows phone 8, how do we put different resolutions? In the same folder? or different folders? If so how to name?

Could someone throw some light on this?

È stato utile?

Soluzione

This is rather complex on Windows Phone 8.

Regarding the splash screen (if any), you can use special file names:

  • SplashScreenImage.Screen-WVGA.jpg (for WVGA phones)
  • SplashScreenImage.Screen-WXGA.jpg (for WXGA phones)
  • SplashScreenImage.Screen-720p.jpg (for 720p phones)

For all other images, you have to implement an own class that returns the best image for the current resolution. This is explained in the following MSDN article: Multi-resolution apps for Windows Phone 8.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top