Android阿拉伯语游标拆分 [英] Android Arabic Cursor Split

查看:179
本文介绍了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?

谢谢

推荐答案

在此处找到解决方案: https://ux.stackexchange. com/a/39639 显然,当您混合使用rtl和ltr文本时,这是正常的行为.

Found the solution there: https://ux.stackexchange.com/a/39639 Apparently, it's the normal behavior when you have rtl and ltr text mixed.

这篇关于Android阿拉伯语游标拆分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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