4

I want to use the entire width of the screen and be able to make it scrollable. So I want to hide the scroll indicator of a ScrollView. How can I achieve this?

Saro Taşciyan
  • 5,210
  • 5
  • 31
  • 50
user2799407
  • 549
  • 1
  • 6
  • 16
  • Did u tried this: `scrollView.setVerticalScrollBarEnabled(false); scrollView.setHorizontalScrollBarEnabled(false);` – M D Feb 20 '14 at 07:29

3 Answers3

5

If you want a ScrollView without scroll bars, you can use the following:

android:scrollbars="none"

You can do it porgramatically as follows:

yourScrollView.setVerticalScrollBarEnabled(false);
yourScrollView.setHorizontalScrollBarEnabled(false);

Edit: Can you try this one android:scrollbarStyle="insideOverlay"

Saro Taşciyan
  • 5,210
  • 5
  • 31
  • 50
0

In layout file set scrollbars="none"

Hideme Sri
  • 193
  • 9
0

try this: Programmatically set

 scrollView.setVerticalScrollBarEnabled(false); 
 scrollView.setHorizontalScrollBarEnabled(false);

Or

android:scrollbars="none"
M D
  • 47,665
  • 9
  • 93
  • 114