assets - Multi Device Hybrid Apps - support for xxhdpi and xxxhdpi densities on Android -
i'm using visual studio 2013 multi-device hybrid apps ctp 2.0. in project template, there several placeholder splashscreens , icons android: ldpi, mdpi, hdpi , xhdpi densities. how can support xxhdpi , xxxhdpi densities? tried following:
- added files
res/icons/android
(icon-144-xxhdpi.png) ,res/screens/android
(screen-xxhdpi.png) - added icon specification config.xml according cordova docs
the xxhdpi images not present in apk file after build.
currently visual studio not support xxhdpi or xxxhdpi , therefore xxhdpi.png images make package (.apk). vs cpt2.0 supports below listed resolution , can see complete list across different platforms here http://msdn.microsoft.com/en-us/library/dn757053.aspx#visualassets
workaround include xxhdpi or xxxhdpi resources package:
- create multi-device hybrid apps project or open existing project.
- build project
- go bld\debug\platforms\android\res
- add folder xxhdpi or xxxhdpi res like
- build project. not re-build.
now resources present under bld\debug\platforms\android\res add package (*.apk)
supported icon , 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
Comments
Post a Comment