7

I have a Textview in which i am showing text 12345 now i want to show text

1
2
3
4
5

I tried rotation but it rotate my text and not giving the exact look.
I don't want to place \n tag in character.
I don't want customization.

Ant4res
  • 1,217
  • 1
  • 18
  • 36
  • Have you had a look at these suggestions? http://stackoverflow.com/questions/6773693/how-can-we-set-vertical-textview – Mat Nadrofsky Dec 22 '11 at 14:08
  • 1
    Check this: [Vertical (rotated) label in Android](http://stackoverflow.com/questions/1258275/vertical-rotated-label-in-android) – Paresh Mayani Dec 22 '11 at 14:28

1 Answers1

5

You could extend TextView to your custom VerticalTextView and override setText() method. In setText implementation you could iterate through text and modify it inserting linebreaks \n. After you finish just set result value to your view.

woodshy
  • 4,085
  • 3
  • 22
  • 21