Android text text in the vertical direction

I have a Textview in which I display text 12345 Now I want to show text

 1 2 3 4 5 

I tried rotation , but it changes my text and does not give an exact look. I do not want to place the \ n tag in character .
I do not want settings.

+7
source share
1 answer

You can extend TextView with your own VerticalTextView method and override setText() . In the setText implementation, you can iterate over the text and modify it by inserting line-by-line \n . Once you're done, just set the result value for your view.

+5
source

All Articles