两端对齐文本中的TextView的Andr​​oid两端、文本中、TextView、Andr

2023-09-12 09:49:46 作者:看你背影走

你如何获得的TextView是合理的?是有可能得到解决呢?我寻觅最论坛,但我没有做起来。请帮我。

How do you get textview to be justified ? is it possible to get the solution? I have searched most of the forums but i didn't make it up. please help me out.

推荐答案

Android不支持文本的理由,对不起。您可以使用安卓重力属性来对齐文本左或右或中心等,但你真的不能证明它。我想唯一的选择是使用的WebView 来显示文本,然后用CSS来获取文本有道理的。

Android doesn't support text justification, sorry. You can use android:gravity attribute to align text to left or right or center etc, but you can't really justify it. The only option I guess is to use a WebView to show text and then use CSS to get the text justified.