Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试拉伸文本,以便给定的字符串填满整个屏幕。我知道如何让 TextView 对象填满屏幕,但不能让实际的字母做同样的事情。谁能建议一种方法来做到这一点?
如果那是一些静态文本,您可以手动拉伸它
yourTextView.setTextScaleX((float) 1.6 ); // set to what ever fits
您可以对其进行缩放并检查这些单词是否在您的代码中分成两行。
使用 Web 视图。使用此(html 样式)格式化文本:
style="text-align:justify"