Multi Device Hybrid Apps - support for xxhdpi and xxxhdpi densities on Android

微笑、不失礼 提交于 2019-12-06 09:19:20

Currently Visual Studio does not support xxhdpi or xxxhdpi and therefore xxhdpi.png images does make it to package (.apk). VS CPT2.0 supports below listed resolution and you can see the complete list across different platforms here http://msdn.microsoft.com/en-us/library/dn757053.aspx#VisualAssets

Workaround to include xxhdpi or xxxhdpi resources to package:

  1. Create the Multi-Device Hybrid Apps project or open any existing project.
  2. Build the project
  3. Go to bld\Debug\platforms\android\res
  4. Add folder for xxhdpi or xxxhdpi res like

  1. Build the project. Do not re-build.

Now all the resources present under bld\Debug\platforms\android\res will be add to package (*.apk)

Supported icon and screen resources in Visual Studio Multi-Device Hybrid Apps CTP 2.0:

  • icon-36-ldpi.png
  • icon-48-mdpi.png
  • icon-72-hdpi.png
  • icon-96-xhdpi.png
  • icon-96-xhdpi.png

  • screen-xhdpi-landscape.png

  • screen-hdpi-landscape.png
  • screen-mdpi-landscape.png
  • screen-ldpi-landscape.png
  • screen-xhdpi-portrait.png
  • screen-hdpi-portrait.png
  • screen-mdpi-portrait.png
  • screen-ldpi-portrait.png
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!