Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change PhoneGap's screen size?

I'm building an application with PhoneGap. i'm using my Galaxy S2 to test the application, and his screen resolution is 480x800. But when the View is created, his size is 320x800!

I tried too many things, but nothing works... Is there here anyone that can please help me?

Oh, I'm using android's environment, with Eclipse, ADT, etc.

like image 991
Denis Lins Avatar asked Dec 28 '11 20:12

Denis Lins


1 Answers

I found a way to do that. I already had tried by using a meta viewport, but I guess I don't put everything that is necessary.

Just put this meta tag below and everything should be fine.

<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, target-densityDpi=device-dpi" />
like image 178
Denis Lins Avatar answered Oct 19 '22 20:10

Denis Lins