简体   繁体   English

Phonegap页面无法在Android 2.2上正确缩放

[英]Phonegap page not scaling correctly on Android 2.2

I'm using Phonegap to load an HTML/Jquery driven website. 我正在使用Phonegap加载HTML / Jquery驱动的网站。 It runs fine on 3.0, but when I run on a 2.2 simulator a few problems happen: 它可以在3.0上正常运行,但是当我在2.2模拟器上运行时,会发生一些问题:

Screen resolution is much too zoomed in Loss of real-estate (the sides of the screens are black) Can't scroll to see entire page 屏幕分辨率放大太多失去房地产(屏幕的侧面为黑色)无法滚动查看整个页面

It's just a new project -> add Phonegap library -> add my www folder. 这只是一个新项目->添加Phonegap库->添加我的www文件夹。

Anyone know why this happens? 有人知道为什么会这样吗? Is there something I need to set in my HTML, or my Android XML files? 我需要在HTML或Android XML文件中进行设置吗?

Be sure to set the following values in your AndroidManifest.xml 确保在AndroidManifest.xml中设置以下值

<supports-screens
  android:largeScreens="true"
  android:normalScreens="true"
  android:smallScreens="true"
  android:resizeable="true"
  android:anyDensity="true"
/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM