How to show scrollbars in android webview

Is it possible to show scrollbars for html scrollable elements in android webview? How to do it?

+4
source share
2 answers

in your onCreate() method: try the following:

 @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.your_web_view_layout); browser = (WebView)findViewById(R.id.your_webview); WebSettings mWebSettings = browser.getSettings(); mWebSettings.setBuiltInZoomControls(true); browser.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY); browser.setScrollbarFadingEnabled(false); browser.loadUrl("file:///android_asset/index.html"); } 
+9
source

They helped me

 android:scrollbarAlwaysDrawVerticalTrack="true" 
-1
source

All Articles