0

How can one achieve scrollbar like one below for TextView?

So what i mean is, the scrollbar style is custom and is visible when the content does not fit into TextView.

enter image description here

Thank you all in advance.

3
  • add this android:scrollbars = "vertical" to textview Commented Mar 12, 2017 at 20:05
  • have you tried the suggestions from here? stackoverflow.com/questions/14171755/custom-scrollbar-android Commented Mar 12, 2017 at 20:19
  • Hi i have tried that, i can get the standard scrollbar but unsure of how to get buttons for scroll up and scroll down Commented Mar 12, 2017 at 20:27

1 Answer 1

0

You can't add ScrollView to a TextView. You can make it scrollable instead (which is technically same)

See this answer , hope you get your solution!

Sign up to request clarification or add additional context in comments.

8 Comments

@Tamid thanks for that however what i actually want is the way it looks.
you want it appear all the time beside textview or when it should be scrolled?
Appear when the content cant be fitted in the text view.
ok think i got your point ; you want to make TextView scrollable and at the same time, the scroll should have your custom style... am i right?
so, for the first step(scrollable TextView) you could follow my answer above and for the second step (styling scrollbar) you can go here
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.