K
K
Kirill Yaroshevich2017-09-11 21:00:57
Android
Kirill Yaroshevich, 2017-09-11 21:00:57

How to add the ability to zoom with two fingers?

How to add the ability to zoom with two fingers?
here is the screen, as you can see on the screen, the increase is possible only + and -:
046c46fcd64545bcbf5fa300be2626d2.jpg
the schedule is loaded through the code:

//---you need this to prevent the webview from
// launching another browser when a url
// redirection occurs-—
        webView.setWebViewClient(new Callback());

        String pdfURL = "http://www.1kurs.pdf";
        webView.loadUrl(
                "http://docs.google.com/gview?embedded=true&url=" + pdfURL);

        setContentView(webView);
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belousov, 2018-01-11
@kiruha_21

mWebView.getSettings().setSupportZoom(true);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question