Android - Add other values to websettings settextsize
Posted
by
user1681477
on Stack Overflow
See other posts from Stack Overflow
or by user1681477
Published on 2012-09-18T21:27:46Z
Indexed on
2012/09/18
21:38 UTC
Read the original article
Hit count: 144
android
In my application I am using a webview, and in order to increase/decrease text size, I am using WebSettings().setTextSize method, but, this method is limited to 5 predefined enum sizes only (SMALLEST, SMALLER, NORMAL, LARGER,LARGEST). I know I can use WebSettings().setTextZoom(int), but my application is available for API Level 8 and above, and this method was introduced in API Level 14...
My question is: Is there any way to add other sizes to webSettings().setTextSize? maybe by extending textSize enum, or define other sizes?
© Stack Overflow or respective owner