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
Post a Comment