带有 Android ICS 的 Galaxy Note 1 上没有以阿拉伯语显示 EditText 提示 [英] EditText Hint doesn't appear in Arabic on Galaxy note 1 with Android ICS
问题描述
我有一个阿拉伯语提示,我想在其中设置我在 Dialog 中使用的 EditText...它适用于许多设备,除了具有 Android ICS 的 Galaxy note 1.
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 - Activity 屏幕上的 EditText 工作正常,但在 Dialog 上它没有显示阿拉伯语提示.
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
但没有解决问题.
有人解决了吗?
推荐答案
只需尝试在您的字符串之前插入此 Unicode "\u0020" 即可.
just try to insert this Unicode "\u0020" before your string and it will work.
这篇关于带有 Android ICS 的 Galaxy Note 1 上没有以阿拉伯语显示 EditText 提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!