-1

I would like to write text vertically using a TextView in android. I would like the output to be as shown below

T
E
X
T

Is this possible without code?

BlackCursor
  • 1,492
  • 1
  • 17
  • 29
  • Possible duplicate of [Vertical (rotated) label in Android](http://stackoverflow.com/questions/1258275/vertical-rotated-label-in-android) – Vasileios Pallas Dec 10 '15 at 17:36

1 Answers1

3

Yes you can. It's really simple, just add \n after each character.

Eric B.
  • 4,622
  • 2
  • 18
  • 33
  • That is a simple way! Thanks. But, is it possible to adjust the spacing between the alphabets in this case? – BlackCursor Dec 10 '15 at 17:42
  • By spacing you mean the spacing between the words, right? (For example the phrase "Hello World" has just 1 space) You are talking about this space, right? – Eric B. Dec 10 '15 at 17:44
  • Nevermind, I got it. I meant the vertical spacing. We can use `lineSpacingMultiplier` property to reduce/increase line spacing. Thanks :) – BlackCursor Dec 10 '15 at 17:46
  • Great, glad i could help out! Kindly accept my answer. – Eric B. Dec 10 '15 at 17:48