开发者

Supporting different resolutions in PhoneGap(Android)

开发者 https://www.devze.com 2023-01-29 18:41 出处:网络
I am using GWT(google web toolkit) as my javascript library.I am using PhoneGap to convert it to a native Android app.My problem is that my project开发者_开发知识库 is 480px*320px (landscape) for a HV

I am using GWT(google web toolkit) as my javascript library.I am using PhoneGap to convert it to a native Android app.My problem is that my project开发者_开发知识库 is 480px*320px (landscape) for a HVGA emulator which works good it takes up the whole screen.If I test on the WVGA800 emulator the project is considerably smaller which makes sense.

How can I compensate for both resolutions?

Thanks


I figured this out.What I had to do was set the follwing in the supports-screens in the manifest.xml

android:anyDensity="false"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号