作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我在 EditText 中设置下面的文本作为提示
مرحبا هذا هو الاختبار. Test
但是显示如下
Test مرحبا هذا هو الاختبار.
我想设置提示,因为我在提示中给出了字符串。
<EditText
android:id="@+id/username"
android:layout_width="0dip"
android:layout_height="48dp"
android:layout_marginRight="5dp"
android:layout_weight="1"
android:focusable="true"
android:lines="1"
android:hint="مرحبا هذا هو الاختبار. Test"
android:singleLine="true"
android:textColor="#000000"
android:textSize="18sp" />
最佳答案
你可以只在你的字符串的第一个添加 "\u200F"
var text = "\u200F"+ "测试"+ "آ₩
关于android - 如何在EditText中将阿拉伯文本加英文文本从右到左,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25286929/
我需要在 MYSQL 数据库中输入 10 种语言的内容(有问题的是:中文、俄语、阿拉伯语),客户端应该能够通过 phpMyAdmin 和管理区域读取和编辑它们。 我使用过 utf8-bin、utf8_
我在 VBA 用户窗体中创建了一个 ListView 。 Listview 显示用户在 3 个文本框中插入的数据(单击“保存”按钮后)。用户可以在希伯来语中插入文本,但在 ListView 中,文本显
我是一名优秀的程序员,十分优秀!