使用Android ICS的Galaxy Note 1上不会以阿拉伯语显示EditText提示 [英] EditText Hint doesn't appear in Arabic on Galaxy note 1 with Android ICS

查看:88
本文介绍了使用Android ICS的Galaxy Note 1上不会以阿拉伯语显示EditText提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个阿拉伯语提示,我想要在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-在活动屏幕上的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.

有人知道了吗?

推荐答案

只需尝试在字符串之前插入此Unicode"\ u0020",它将起作用.

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

这篇关于使用Android ICS的Galaxy Note 1上不会以阿拉伯语显示EditText提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆