如何由右至左使文本方向 [英] How to make the text direction from right to left

查看:216
本文介绍了如何由右至左使文本方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在一个TextView写(从右到左的语言如阿拉伯语)的文本。但我想使由右至左的文字书写方向。 比重:权将对齐文本右而已。我想证明,从右侧的文本向左(使文字和数字出现在他进入顺序就行)。怎么样?

I want to write text in (right to left language i.e. Arabic) in a TextView. But I want to make the text writing direction from right to left. gravity:rightwill align the text to right only. I want to justify the text from right to left ( to make the words and numbers appear in he entered order in the line ) . how ?

推荐答案

只要把这个属性在你的TextView的,一切都会锻炼就好了它会自动检测你的文字和发生相应的变化。

Just put this property in your TextView and everything will workout just fine it will automatically detect your text and change accordingly

android:textDirection="anyRtl"

这篇关于如何由右至左使文本方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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