Set Text width more than Display width

120 views Asked by At

I thought that maximum width of a text View in android is display width of the device.I have scroll text that is extended from Linear Layout.By using animation class i can move the text, and its act like a automatic Scrolling text. My problem is the text length(String length 70) exceed the maximum width of the text view (1280 pixel). So the text 70 is show like this (...)

1

There are 1 answers

0
Chan-Han-Dan On

To make a TextView Scrollable the setMovementMethod() has to be called. However, there will be no scroll bar when scrolling it. To add a scroll bar, the android:scrollbars attribute has to be set in the layout file like this: