两端对齐文本中的TextView的Android [英] Justify Text in TextView Android
本文介绍了两端对齐文本中的TextView的Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你如何获得的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.
这篇关于两端对齐文本中的TextView的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文