如何由右至左使文本方向文本、方向、右至左使

2023-09-05 11:16:05 作者:倒影年华

我想在一个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"