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

查看:36
本文介绍了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天全站免登陆