Android TextView 对齐文本 [英] Android TextView Justify Text

查看:40
本文介绍了Android TextView 对齐文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使 TextView 的文本两端对齐(文本在左右两侧齐平)?

How do you get the text of a TextView to be Justified (with text flush on the left- and right- hand sides)?

我在此处找到了一个可能的解决方案,但是它不起作用(即使您将 vertical-center 更改为 center_vertical 等).

I found a possible solution here, but it does not work (even if you change vertical-center to center_vertical, etc).

推荐答案

我不认为 Android 支持完全理由.

I do not believe Android supports full justification.

UPDATE 2018-01-01:Android 8.0+ 支持 带有 TextView代码>.

UPDATE 2018-01-01: Android 8.0+ supports justification modes with TextView.

这篇关于Android TextView 对齐文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆