You can use this
WebView browser = (WebView) findViewById(R.id.webview);
browser.getSettings().setLoadWithOverviewMode(true);
browser.getSettings().setUseWideViewPort(true);
this fixes size based on screen size.
More Related Contents:
- webview app: choosing a file doesn’t work
- WebView and HTML5
- Android – local image in webview
- Android WebView not loading an HTTPS URL
- Android webview & localStorage
- Send Post request along with HttpHeaders on Android
- Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?
- How to set the initial zoom/width for a webview
- Android webview loading data performance very slow
- Display a part of the webpage on the webview android
- Caching in Android webview
- How to load html string in a webview?
- How to retrieve HTML content from WebView (as a string)
- Webview with asynctask on Android
- Android WebView JellyBean -> Should not happen: no rect-based-test nodes found
- not working in webview
- Android and setting width and height programmatically in dp units
- Passing data from java class to Web View html
- Android: Using WebView outside an Activity context
- android: webview inside dialog or popup
- WebView showing ERR_CLEARTEXT_NOT_PERMITTED although site is HTTPS [duplicate]
- Pass cookies from HttpURLConnection (java.net.CookieManager) to WebView (android.webkit.CookieManager)
- Open external links in the browser with android webview
- Get HTTP Status Code in Android WebView
- Disable WebView touch events in Android
- Using a webview to browse the photo gallery
- android – how to prevent webview to load when no internet connection
- Flutter – How to download files in WebView?
- Why Bitmap to Base64 String showing black background on webview in android?
- Android Stream video from Google drive