Android WebView leaves space for scrollbar

Battled this one as well. Found the answer here.

Looks like you were dead on with android:scrollbarStyle="insideOverlay", except that because of some bug it doesn’t function right when defined in XML. It works right if you use:

webView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);

Annoying.

Leave a Comment