Questions tagged [android-scrollbar]

96 questions
105
votes
6 answers

Remove scroll bar track from ScrollView in Android

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've wrapped the WebView in a ScrollView in my layout XML, but no matter what I…
Mick Byrne
  • 14,394
  • 16
  • 76
  • 91
90
votes
13 answers

Disable scrolling in webview?

Until now I have been an iPhone developer only and now I have decided to give Android a whirl. Something I haven't been able to figure out on Android is how to programmatically prevent scrolling in a WebView? Something similar to iPhones prevention…
Jake Sankey
  • 4,977
  • 12
  • 39
  • 53
48
votes
12 answers

Scrollbar not showing in RecyclerView

I've got a RecyclerView and would like to have scrollbar showing, when it covers more than one page. I get no scrollbar at all. Any idea? My layout:
39
votes
5 answers

Scrollbar color in RecyclerView

How can I change the color of my scrollbar in a recyclerView? I have the scrollbar but I want to change its color. My recyclerView is like this:
Yass
  • 547
  • 1
  • 7
  • 14
34
votes
3 answers

How can I change the width/thickness of a scrollbar?

Currently this is my scrollbar.xml file:
Michael Yaworski
  • 13,410
  • 19
  • 69
  • 97
31
votes
5 answers

How to make the `scrollbar` appear on the left side?

In an Android ListView, how can I make the scrollbar appear on the left side?
Adham
  • 63,550
  • 98
  • 229
  • 344
22
votes
4 answers

ListView scrollbarStyle with margin/padding

Hopefully a simple one. v4.0.3 I have a ListView and want to leave a margin of 10dip right and left. The content is easy of course, but I want the divider line to have a 10dip margin right and left too. If I add android:PaddingRight or…
MartinS
  • 6,134
  • 10
  • 34
  • 40
16
votes
0 answers

Is there a way to make Recyclerview Scrollbar thumb of fixed height?

I don't want my custom scrollbar thumb to grow and shrink with the list size. While it worked with ListView and GridView, I can't find any way of doing it with RecyclerView. I could find fast scrollers for linear layout but they are not working…
6
votes
2 answers

horizontalscrollview's fillviewport disables scrolling?

I have this layout, and it's scaled weirdly (probably due to inadviseable layout nesting) if I do not use fillviewport=true in my HorizontalScrollView. Everything works peachy (except for the odd scaling) when fillviewport=false, but when…
Turnsole
  • 3,422
  • 5
  • 30
  • 52
6
votes
1 answer

Scrollbar on Top Side in Horizontal RecyclerView

I am working on the Simple demo of Horizontal RecyclerView. I want to display scrollbar along with the recyclerview. So I have added android:scrollbars="horizontal" and android:scrollbarSize="5dp" in XML. I am able to get the Scrollbar but it is…
Ronak Thakkar
  • 2,515
  • 6
  • 31
  • 45
6
votes
2 answers

How to handle the fast-scroller on Lollipop 5.1?

Background I've made a tiny library, which shows how to mimic the style of the stock contacts app of Android Lollipop, here. The problem It seems that on Android 5.1 , the fast scroller looks very different than the previous one, and it's too close…
5
votes
1 answer

Is it possible to disable all scrolling and zooming in an android webview?

I tried to find an answer but have thus far failed. I have an activity that uses a WebView. Everything that is displayed to the user is rendered in HTML and JavaScript. That is, the WebView takes all the screen it can. The APK is used for storing…
user1008090
  • 259
  • 4
  • 9
5
votes
0 answers

Modify fast scroll alphabetical bubble

I am trying to change the bubble containing the letter in the scrollbar. What is its official name BTW ? I am not talking about the fastScrollThumbDrawable or fastScrollTrackDrawable on the right side. See the image below. How to change the color…
5
votes
2 answers

Styling the scrollbar thumb

I'm trying to change the outlook of the scrollbar thumb for a ListView. I added the following property to the listview: android:scrollbarThumbVertical="@drawable/scrollbar_vertical_thumb" scrollbar_vertical_thumb.xml:
TheAptKid
  • 1,559
  • 3
  • 25
  • 47
1
2 3 4 5 6 7