Android WebView ScrollBar设置

时间:2024-04-25 09:35:08

WebView wv;

wv.setVerticalScrollBarEnabled(false);  取消Vertical ScrollBar显示

wv.setHorizontalScrollBarEnabled(false); 取消Horizontal ScrollBar显示
wv.setVerticalScrollBarEnabled(true);  
wv.setHorizontalScrollBarEnabled(true);

wv.setScrollBarStyle(View.SCROLLBARS_INSIDE_INSET) ;

wv.setScrollBarStyle(SCROLLBARS_OUTSIDE_INSET) ;

wv.setHorizontalScrollbarOverlay(boolean overlay);

wv.setVerticalScrollbarOverlay(boolean overlay);