pinch zoom in android
pinch zoom in webview
I have webview1 which is assigned to ourSite variable
WebView ourSite = (WebView) findViewById(R.id.webView1);
add following code for pinch zoom in webview
ourSite.getSettings().setSupportZoom(true);
ourSite.getSettings().setBuiltInZoomControls(true);
Import header file
// for getSetting
import android.webkit.WebSettings;
//for webview
import android.webkit.WebView;
pinch zoom in webview
I have webview1 which is assigned to ourSite variable
WebView ourSite = (WebView) findViewById(R.id.webView1);
add following code for pinch zoom in webview
ourSite.getSettings().setSupportZoom(true);
ourSite.getSettings().setBuiltInZoomControls(true);
Import header file
// for getSetting
import android.webkit.WebSettings;
//for webview
import android.webkit.WebView;
Thank Alot
ReplyDelete
ReplyDeleteNice post
sap training institute in Noida
sap training institute in Delhi