Mobile app version of vmapp.org
Login or Join
Rambettina927

: Sketch to PhoneGap App - Sizes and Units Wrong Hopefully this is in the correct place! So I've designed a few app screens in sketch and have come to try and code them using PhoneGap but

@Rambettina927

Posted in: #Iphone #SketchApp

Hopefully this is in the correct place!

So I've designed a few app screens in sketch and have come to try and code them using PhoneGap but can't seem to get my head around sizes etc..

This is one of the problems I'm having. In Sketch I have got a text input box that is apparently 60px high (I am using the iPhone 6 Artboard (375px wide)). I took this height of 60px and put it in to my CSS but it is absolutely huge and ends up looking nothing like the design.

What sizes and units should I be using to get an accurate representation of my Sketch app in the PhoneGap app.

Thanks

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rambettina927

1 Comments

Sorted by latest first Latest Oldest Best

 

@Angela777

PhoneGap and Cordova use CSS pixels, which means 1x1 CSS pixel on a retina iPhone is drawn with 2x2 real device pixels. iPhone 6S sizes are a bit trickier to understand. About those later.

The common recommendation seems to be on designing for 1x screens in Sketch and then scaling on export appropriately. This would mean 320px wide artboards for older iPhones, and then scaling from there to 640px for 2x retina 5S and such.

Just remember to have all your bitmaps in a high enough resolution so that you do not lose details.

Regarding iPhone sizes, this link might help a bit: www.paintcodeapp.com/news/iphone-6-screens-demystified

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme