RTL(波斯语-阿拉伯语)字母在 android 工作室编辑器中搞砸了

RTL(Persian-Arabic)Letters Messed up in android studio editor

在 AndroidStudio 编辑器中,当我 select 部分波斯语文本或 RTL 语言(波斯语-阿拉伯语)字母时,它搞砸了。

例如这部分代码:

   <string name="NetworkConnection">لطفا اتصال اینترنت خود را بررسی نمایید.</string>

但在编辑器中 select 部分 RTL 句子重塑为这种形式:

我需要安装插件或其他解决方案吗?


编辑 1,答案:

对于 Windows OS 用户,所述响应正常。

但对于 Mac OS 用户,根据 tools.android.com document AndroidStudio select Edit Custom Properties[中的以下路径=24=]

通过这个,您可以在 ~/Library/Preferences/{FOLDER_NAME}/idea.properties 路径中创建 idea.properties 文件,您可以编辑此文件并添加属性,例如 editor.new.rendering=true for RTL Support in AndroidStudio 编辑.

目前Android Studio 不能很好地支持RTL 语言。 但是您可以将您的 Android Studio 更新到 "Stable Channel" 上的最新版本,这个版本以某种方式提供了对 RTL 语言的良好支持。

另外,Android Studio 有一个资源文件编辑器。它完全可用于 RTL 语言。在你的资源文件中点击屏幕右上角的"open editor"进入编辑器

萨拉姆赛义德
我找到了一个方法,它已经有一些错误,但总比没有好(kachi baazi hichi!!)
文件 > 设置 > 编辑器 > 颜色和字体 > 字体
保存方案的副本,然后取消选中显示等宽选项,然后取消选中 select Tahoma 字体。这项工作使它变得更好但并不出色。
我的波斯语比英语好多了!!
خلاصه بهت بگم فونت تاهوما رو انتخاب کن

这是 Android Studio 中报告的错误。

https://code.google.com/p/android/issues/detail?id=57667

根据评论 #19 和 #21,这个问题将在 Android Studio 2.0 稳定版(即将)中解决:

评论 #19:

Release in Android Studio 2.0. set "editor.new.rendering=true" in in idea.properties as described in http://tools.android.com/tech-docs/configuration

Not turned on by default in IntelliJ 15, but user configurable.

评论 #20:

I've added an example for how to configure it in http://tools.android.com/tech-docs/configuration

This is not going to be a user configurable option; we plan to enable it by default as soon as we've tested it and confirmed that its performance and stability is satisfactory.

对于 Windows 中的 Android Studio 1.5 在
中创建名称为 "idea.properties" 的文件 C:\用户\your_user_name_folder\.AndroidStudio1.5
并将其写入文件:

editor.new.rendering=true

我测试了它,它有效。

我正在使用 android 工作室版本 2.1.1,但波斯语存在很多问题。当 U 键入波斯语时,在 xml 中它显示反向。但最终的 apk 没有问题,我的设备显示正确。 如果您想使用波斯字体,请按以下方式使用:

TextView tx = (TextView) findViewById(R.id.textView);
Typeface custom_font_BKoodakBold = Typeface.createFromAsset(getAssets(),                
        "fonts/B Koodak Bold.ttf");
 if (tx != null) {
        tx.setTypeface(custom_font_BKoodakBold);

我用过它,效果很好,设备中的诅咒。 R.id.textView 中的 textView 是我用 xml 编写的文本,BKoodakBold 是我的字体。

你好 当您在 Android Studio 中输入波斯语时,单词是正确的,但句子是颠倒的。但是当你在手机上运行这个程序时,这个问题就不会出现了,不用担心。 要确定字体,请使用下面相应的代码:

TextView tx = (TextView) findViewById(R.id.textView);
Typeface custom_font_BKoodakBold = Typeface.createFromAsset(getAssets(), 
        "fonts/B Koodak Bold.ttf");
 if (tx != null) {
        tx.setTypeface(custom_font_BKoodakBold);

到目前为止,这种方法对我来说效果很好。我的 Android Studio 版本是 2.1.1。 我的写作是在一个名为 Textview 的 XML 文件中。抱歉,我没有用英文写,因为句子打错了。 希望你成功,当然这篇文章还不算太晚