Search code examples
androidapp-inventor

disable webview zoom in App Inventor


When I create an app with App Inventor and I add a webviewer component, it appears an annoying icon to zoom. Wonder how can I disable this icon.

If there isn't a specific function implemented in App Inventor, please tell me which part of the java code I have to modify. Thanks


Solution

  • Generally you can't disable the zoom for the webviewer component in App Inventor.

    In case you are displaying your own webpages, you can try to add the following into your HTML header tag:

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    

    See also: https://stackoverflow.com/a/4472910/1545993

    Probably this will not work for older Android versions...