Android阿拉伯语游标拆分

编程入门 行业动态 更新时间:2024-10-22 20:30:29
本文介绍了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阿拉伯语游标拆分

本文发布于:2023-11-01 11:44:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549254.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:阿拉伯语   游标   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!