android - change the webview fontsize with seek bar -


textview font changes seekbar's onprogresschanged() event.. i'm unable same webview.

but after refresh/reload font size changes.

can't done textview?

you have access webview settings object , change textvalue there.

for devices before api 13 / ics :

you can use enums set text size value, take here textsize code this

webview.getsettings().settextsize(textsize.large); 

for ics , later can set text size by:

webview.settextzoom(200); // % of text size . 

for more webview settings take here : websettings


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -