Skip to content

Commit bd5ac87

Browse files
committed
webview: add enableZoom() method
1 parent f2fff78 commit bd5ac87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pythonforandroid/bootstraps/webview/build/src/main/java/org/kivy/android/PythonActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ public void run() {
240240
mActivity.runOnUiThread(new LoadUrl(url));
241241
}
242242

243+
public static void enableZoom() {
244+
mWebView.getSettings().setBuiltInZoomControls(true);
245+
mWebView.getSettings().setDisplayZoomControls(false);
246+
}
247+
243248
public static ViewGroup getLayout() {
244249
return mLayout;
245250
}

0 commit comments

Comments
 (0)