我有一个阿拉伯语提示,我想在我在 Dialog 中使用的 EditText 中设置它...它适用于许多设备,除了具有 Android ICS 的 Galaxy note 1。
注意
1 - 我将手机的语言转换为阿拉伯语,所以它显示了阿拉伯语提示。
2 - Activity 屏幕上的 EditText 工作正常,但在 Dialog 上它不显示阿拉伯语提示。
布局中的 XML EditText 是:
<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”,它就会起作用。
关于android - 带有 Android ICS 的 Galaxy note 1 上未以阿拉伯语显示 EditText 提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17210160/