Remove scroll bar track from ScrollView in Android

后端 未结 6 999
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 15:34

My Android app has a main WebView (HTML loaded from a local resource) which I want to use the entire width of the screen and be able to make (vertically) scrollable. So I\'v

6条回答
  •  粉色の甜心
    2020-12-23 16:20

    I'm a little confused why you are putting a WebView into a ScrollView in the first place. A WebView has it's own built-in scrolling system.

    Regarding your actual question, if you want the Scrollbar to show up on top, you can use

    view.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY) or   
    android:scrollbarStyle="insideOverlay"
    

提交回复
热议问题