I finally found it:-
WebSettings webSettings = webView.getSettings();
either setTextSize
or
webSettings.setTextSize(WebSettings.TextSize.SMALLEST);
This one works too:-
webSettings.setDefaultFontSize(10);
More Related Contents:
- How to change the Font Size in a whole Application programmatically, Android?
- How do I get the web page contents from a WebView?
- Clicking URLs opens default browser
- WebView android proxy
- Auto-fit TextView for Android
- Playing HTML5 video on fullscreen in android webview
- Load HTML file into WebView
- how to prevent system font-size changing effects to android application?
- How to load external webpage in WebView
- How to add “Go Back” function in WebView inside Fragment?
- Loading Youtube video through iframe in Android webview
- Is `shouldOverrideUrlLoading` really deprecated? What can I use instead?
- Scroll webview horizontally inside a ViewPager
- Android WebView, Scaling Image to fit the screen
- handling links in a webview
- Set loadURLTImeOutValue on WebView
- How to load html string in a webview?
- Kitkat kills: Not allowed to load local resource: file:///android_asset/webkit/android-weberror.png
- Android : Html Anchor Link works only once in webview
- Upload an Image from camera or gallery in WebView
- Support for other protocols in Android webview
- How to clear cookies and cache of webview on Android when not in webview?
- Android sp vs dp texts – what would adjust the ‘scale’ and what is the philosophy of support
- Intercept and override HTTP requests from WebView
- How to get loaded web page title in Android WebView?
- Android – Open target _blank links in WebView with external browser
- Letting WebView on Android work with prefers-color-scheme: dark
- Flutter – How to download files in WebView?
- Why Bitmap to Base64 String showing black background on webview in android?
- Android WebView Scrollable