Member-only story
[Android] Change the font size of WebView
1 min readJan 6, 2020
Sometimes we need to put WebView into our app.
How can we adjust the font size of WebView ?
You may know we can write the value of localStorage
while WebView loaded.
But how can we set data twice even more times?
Since the html do not observe the value of localStorage
all the time, we need to call loadFontSize()
ourselves.
I am not sure whether every web pages support this function call or not. I suggest to check with the web developer first.
Please feel free to contact me if you need any further information :)