0

I was wondering how I can add a scrollbar to an edit text whenever the text is too long and can't be seen on the edit text box.

Something like this: enter image description here

Any ideas? I've tried setting it through the xml but so far it hasn't worked, it just moves if I drag my finger over it but no bar is visible.

dazai
  • 766
  • 4
  • 25

1 Answers1

0

You can add fadeScrollbars="false" in your xml

paul30
  • 1
  • 2
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jan 26 '22 at 02:42
  • thank you for answering but that, unfortunately, does not seem to work – dazai Jan 26 '22 at 12:12
  • How about you put your textview inside HorizontalScrollView and set the `fadeScrollbars="false"` to the scrollview, not the textview? – paul30 Jan 26 '22 at 18:14