How to change PhoneGap's screen size?

强颜欢笑 提交于 2019-12-12 11:18:06

问题


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.


回答1:


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" />


来源:https://stackoverflow.com/questions/8661064/how-to-change-phonegaps-screen-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!