1

I want to use custom ScrollBars in android WebView; and also want to use that scrollbar to scroll WebView content. I know that we can show scrollbars using:

mWebView.setVerticalScrollBarEnabled(true);
mWebView.setHorizontalScrollBarEnabled(true); 

But if I use thode default scrollbars, then I am not able to scroll the content of WebView by dragging scrollbar.

Chaitanya Karmarkar
  • 1,425
  • 2
  • 7
  • 18

1 Answers1

0

It's easy to custom Scroll Bar of WebView. Just add this attribute code to xml of WebView with your custom:

android:scrollbarThumbVertical="@drawable/your_custom_scrollbar_thumb"
android:scrollbarTrackVertical="@drawable/your_custom_scrollbar_track"
Tungken
  • 1,917
  • 1
  • 15
  • 18