本文介绍了Android阿拉伯语游标拆分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的是自定义EditText,因为客户端希望在应用程序中全局强制使用阿拉伯语区域设置.
I'm using a custom EditText because client wants to force arabic locale globally in the app.
这是我在EditText的构造函数中使用的代码:
Here is the code I use in the constructor of the EditText:
setTextDirection(TEXT_DIRECTION_LOCALE);它工作得很好,但是您在图像中看到的却是光标的奇怪行为
It works perfectly, but I have a strange behavior of the cursor as you can see in the image
有人知道这是正常现象还是我该如何解决?
Somebody knows if it's normal or how can I solve this?
谢谢
推荐答案在此处找到解决方案: ux.stackexchange. com/a/39639 显然,当您混合使用rtl和ltr文本时,这是正常的行为.
Found the solution there: ux.stackexchange/a/39639 Apparently, it's the normal behavior when you have rtl and ltr text mixed.
更多推荐
Android阿拉伯语游标拆分
发布评论