4

I'd like to disable zoom control in WebView. I'm using this code to hide the control :

web.getSettings().setDisplayZoomControls(false);

but this code can use in Android since API 11, and how to disable it using API 7 ??

arjuncc
  • 3,057
  • 4
  • 38
  • 71
Dhinx
  • 105
  • 1
  • 7
  • 2
    You may be able to do it using reflection. See this: http://stackoverflow.com/questions/3164603/is-there-a-way-to-hide-and-show-the-zoom-controls-on-a-webview – Jimbali Sep 12 '12 at 07:31

1 Answers1

1

Check this out: enable/disable zoom in Android WebView There is an implementation there for what you are asking to achieve.

Community
  • 1
  • 1
Idan
  • 2,631
  • 3
  • 28
  • 58