webview zoom : how to hide the + - magnifying glass..

Discussion in 'Android Questions' started by ahwong, Jan 21, 2013.

  1. ahwong

    ahwong Member Licensed User

    I still want the zoom enabled .. thanks
  2. Erel

    Erel Administrator Staff Member Licensed User

    Have you checked WebViewSettings library?
  3. ahwong

    ahwong Member Licensed User

    Yes, I did, unfortunately I couldn't figure out the correct one,,,,
  4. warwound

    warwound Expert Licensed User

    WebViewSettings has two methods: setDisplayZoomControls and setSupportZoom.

    setDisplayZoomControls looks to be the method you want to use:

    But it's a method that's only available with Android API level 11 and later.

    The documentation for setSupportZoom states:

    That sounds as though you can use this method to disable the user from being able to zoom the page but still programmatically zoom the page using code (not what you want).

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice