[英]Rotate text and icons of an android app
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 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! 非常感谢!
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. 尝试使用方法Canvas.drawTextOnPath ,路径沿着你想要的线但是从右到左,而不是从左到右,这将绘制你已经拥有的文本。 The picture doesn't show any rotation, so it's unclear what you want your end result to look like. 图片没有显示任何旋转,因此不清楚您希望最终结果是什么样的。
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: 它也可能更符合你的需求:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.