Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

my phonegap application looks smaller in Android HD phones, HDPI and XHDPI phones

i am newbie, developing an hybrid application using phonegap & jquery mobile. my application looks fine in mdpi devices. But, the application UI looks smaller/shrinks in HDPI & XHDPI phones,tablets & Apple devices.

Currently am using the viewport meta tag as

<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, target-densityDpi=device-dpi" />

how can i acheieve the same UI in all screen resolutions & DPIs.

Need your suggestions.

like image 791
yokks Avatar asked Jun 27 '13 14:06

yokks


1 Answers

Remove target-densityDpi=device-dpi. Basically this is all you need:

<meta name="viewport" content="user-scalable=no, initial-scale=1, minimum-scale=1, width=device-width" />
like image 165
Noogen Avatar answered Nov 14 '22 22:11

Noogen