android - How can I adjust width of webview? -


my code affective when user accessing pages clicking link.
when user press back button content won't fit :(

this current code pressing back button

if(keycode == keyevent.keycode_back){     webview  mywebview = (webview)findviewbyid(r.id.webview1);     mywebview.getsettings().setsupportzoom(true);      mywebview.getsettings().setloadwithoverviewmode(true);     mywebview.getsettings().setusewideviewport(true);     mywebview.goback(); } 

how can solve?

if website text being wrapped, use:

webview.getsettings().setlayoutalgorithm(layoutalgorithm.normal) or

webview.getsettings().setlayoutalgorithm(layoutalgorithm.single_column) 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -