0

I want to display text vertically on Canvas.
Please help me.

0xC0DED00D
  • 19,522
  • 20
  • 117
  • 184
Balvant
  • 113
  • 3
  • 9
  • 2
    A little search does not hurt: http://stackoverflow.com/questions/2888780/is-it-possible-to-write-vertically-in-a-textview-in-android Google also gives pretty good information ... – Vincent Mimoun-Prat Feb 22 '11 at 10:38
  • Using a vertical textview and drawing text vertically on a canvas are different things. – user2259824 Apr 15 '14 at 17:23

2 Answers2

0

Have you tried this:

Canvas canvas;
canvas.rotate(90);
canvas.drawText("The text", 0, 0, new Paint());
Marshall
  • 87
  • 2
  • 8
0

You want to create a Path object that defines the verticle line you want your text to follow. Then use a canvas.drawTextOnPath() method.

Amplify91
  • 2,690
  • 5
  • 24
  • 32