对于一个Android应用程序的所有页面缩放启用 [英] Enable zoom for all pages of an android application
问题描述
我一直在使用电话的差距[Android]产品创造了一个Android应用程序。
i have created an android app using phone-gap[Android].
在这里我能够放大应用的我的第一个.html为页面,但点击有我的第一个.html为页面的anchortag /按钮,当过我移动/重定向到一个网页,我不能放大第二的.html页面
Here i am able to zoom my first .html page of application, but when ever i moving/redirecting to a page by clicking the anchortag/button of my first .html page there i am unable to zoom the second .html page
我已经添加了下面的事情在我的.java
i have added below things in my .java
WebSettings settings = appView.getSettings();
settings.setBuiltInZoomControls(true);
settings.setSupportZoom(true);
settings.setDefaultZoom(ZoomDensity.FAR);
和我也有加在我所有的.html页面下面。
and i have also added the following in all my .html pages.
<meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=6, target-densityDpi=device-dpi" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
所以在这里我的问题是:如何使变焦效果
so here my question is: how to enable the zooming effect
任何帮助将appriciated .......
any help will be appriciated.......
推荐答案
我刚刚更新了PhoneGap的以Cordova1.9.0,一切都开始正常工作。
I have just updated the Phonegap to Cordova1.9.0 and everything started working fine.
这篇关于对于一个Android应用程序的所有页面缩放启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!