I need 2 ways of showing vertical label in Android:
- Horizontal label turned 90 degrees counterclockwise (letters on the side)
- Horizontal label with letters one under the other (like a store sign)
Do I need to develop custom widgets for both cases (one case), can I make TextView to render that way, and what would be a good way to do something like that if I need to go completely custom?
This worked for me, just fine. As for the vertically going down letters - I dont' know.
I liked @kostmo's approach. I modified it a bit, because I had an issue - cutting off vertically rotated label when I set its params as
WRAP_CONTENT
. Thus, a text was not fully visible.This is how I solved it:
If you want to have a text from top to down, then use
topToDown(true)
method.