PhoneGap - AppView Setting

PhoneGap appView is the Android WebView container. By default, many setting are off. The following are some helpful setting

//Enable Zoom
this.appView.getSettings().setSupportZoom(true);
//Display with Zoom control. Please note that Android 2.3 and below
//required this in order for zoom support to be enabled
this.appView.getSettings().setBuiltInZoomControls(true);
//Enable normal web view port (like desktop browser). If this is false, it will
//auto fit your content to mobile viewport
this.appView.getSettings().setUseWideViewPort(true);
//enable plugin. This is needed to enable flash plugin
this.appView.getSettings().setPluginState(PluginState.ON);

Comments

Popular Posts