Here's how to prepare the app user interface elements to correctly render on a retina display device:
Open the Adobe Illustrator file you find in the
assets
folder on GitHub at https://github.com/GiorgioNatili/PhoneGapGettingStarted and create two different PNG files (the first one using the real size of the buttons and the second one doubling the size of the buttons) containing the buttons available in the first screen of the app.Save the images using a name that clearly identifies which is the one to use with retina displays (i.e.,
sprite.png
and[email protected]
).Open the
index.css
CSS file and update the selectors previously created to define the buttons background in order to use a single sprite image..sectionNav #createBtn a{ background:url(../img/sprite.png) no-repeat 0 0; } .sectionNav #openBtn a{ background:url(../img/sprite.png) no-repeat -100px 0; margin-left: 10px; } .sectionNav #shareBtn a{ background...