如何让一个TextView文本垂直文本、TextView

2023-09-08 08:58:41 作者:我的温柔ぃ只属于你

我要为我的应用程序垂直标签。是否有一个属性,使文本垂直?这就是我的意思是垂直标签:

I want a vertical label for my app. Is there a property to make text vertical? Here's what I mean vertical label:

S
t
a
c
k
o
v
e
r
f
l
o
w

由于前方。

推荐答案

一个简单的解决方案可能是插入每个字符后,并确保在该高度设置为 FILL_PARENT

A simple solution may be to insert a \n after each character, and make sure that the the height is set to fill_parent.