Webview with Pinch zoom not working when the content more than height and having scroll?

StackOverflow https://stackoverflow.com/questions/21307550

  •  01-10-2022
  •  | 
  •  

문제

I am using webview in my application. The Same webview is supporting pinch zoom for some websites and not supporting for some websites. Usually I have set all the webview settings also like

    webView.getSettings().setSupportZoom(true);
    webView.getSettings().setBuiltInZoomControls(true);

But when loading the some websites having vertically scrolled content are unable to work for pincn zoom. other websites like having horizontal scrolling and fixed content are able to work for pinch zooming.

Please suggest me if any one solve this kind of behaviour with webview. Thanks in advance.

도움이 되었습니까?

해결책

Some mobile pages are designed to fit the device width, with some attribute width=device-width or even user-scalable=no in the meta filed of the page. In this case zooming is disabed by browser.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top