如何在 Android Studio 中添加从上到下文本的垂直底部?
How to add a vertical botton with top to bottom text in Android Studio?
我想请问是否可以制作一个垂直按钮,其中的文字是从上到下写的?例如,考虑将基本按钮放入布局中。我想旋转它并使 "button" 文本垂直书写。
非常感谢。
您可以将高度设置为 wrap_content,将宽度设置为 30dp 左右。
android:layout_width="30dp"
android:layout_height="wrap_content"
或者使用旋转属性到90.
像这样设置它的文本android:text="B\nu\nt\nt\no\nn"
。不要使用 rotation
。将其宽度更改为您喜欢的宽度。
我想请问是否可以制作一个垂直按钮,其中的文字是从上到下写的?例如,考虑将基本按钮放入布局中。我想旋转它并使 "button" 文本垂直书写。
非常感谢。
您可以将高度设置为 wrap_content,将宽度设置为 30dp 左右。
android:layout_width="30dp"
android:layout_height="wrap_content"
或者使用旋转属性到90.
像这样设置它的文本android:text="B\nu\nt\nt\no\nn"
。不要使用 rotation
。将其宽度更改为您喜欢的宽度。