1

My question is how can I modify this code (the selected method):

https://github.com/dudeofawesome/CardboardHome/blob/master/app/src/main/java/dudeofawesome/cardboardhome/Launcher.java#L721

so the text (name of the app like in the photo and icons) are rotated

Thanks a lot!

enter image description here

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Bruno Moya
  • 21
  • 4

1 Answers1

0

Try the method Canvas.drawTextOnPath, with a path that goes along the line you want but from right to left, instead of left to right, which would draw the text as you have it already. The picture doesn't show any rotation, so it's unclear what you want your end result to look like.

Or try this.

Disclaimer: I only used it once to make curved text by specifying two paths, separate for the top and bottom. It may also be more of what you want:

enter image description here

Community
  • 1
  • 1
mz496
  • 790
  • 1
  • 7
  • 13