本文介绍了提示的EditText没有出现在阿拉伯语的GALAXY NOTE 1与Android ICS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有,我想的EditText设置,我用一个对话框提示阿拉伯语......它工作得很好了许多设备,除了GALAXY NOTE 1具有的Andr​​oid ICS。

I have an arabic hint in which I want to set in EditText that I am using in Dialog... it worked fine for many devices except Galaxy note 1 which has Android ICS.

注意

1 - 我转换手机的语言为阿拉伯语,因此表现出一丝阿拉伯语

1 - I converted the language of phone to Arabic so it showed the Arabic hint.

2 - 的EditText上的活动屏幕工作正常,但在对话框它不会显示在阿拉伯语中的提示

2 - EditText on Activity screens worked fine but on a Dialog it doesn't show the hint in Arabic.

在布局XML的EditText是:

The XML EditText in layout is:

      <EditText
            android:id="@+id/editText1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="14dip"
            android:layout_marginRight="14dip"
            android:lines="1"
            android:inputType="textPassword" />

我试图用

  android:ellipsize="end"

  android:ellipsize="start"

  android:singleLine="true"

  android:layout_gravity="" //top, center, right, left

但没有解决问题。

But nothing solved the issue.

任何人都得到了解决?

推荐答案

只是试试你的字符串之前插入该UNI code\\ u0020,它会工作。

just try to insert this Unicode "\u0020" before your string and it will work.

这篇关于提示的EditText没有出现在阿拉伯语的GALAXY NOTE 1与Android ICS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 15:26