如何改变的PhoneGap的屏幕尺寸? [英] How to change PhoneGap's screen size?

查看:148
本文介绍了如何改变的PhoneGap的屏幕尺寸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在建设有PhoneGap的应用程序。我用我的Galaxy S2来测试应用程序,而他的屏幕分辨率为480×800。但是,在创建视图的时候,他的尺寸为320x800!

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?

呵呵,我使用的是Android的环境,使用Eclipse,ADT等。

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

推荐答案

我找到了一种方法来做到这一点。我已经用中继检视试过,但我想我不会把一切是必要的。

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

这篇关于如何改变的PhoneGap的屏幕尺寸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆