
enter image description hereI am using 2 type edit text in my login page. In Arabic EditText gravity is END.But hint in EditText getting left align Why?. When i give inputType="textPassword" no issues. Issues in android:inputType="textEmailAddress"
EditText code given below
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/userName"
android:inputType="textEmailAddress"
android:gravity="end"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password"
android:inputType="textPassword"
android:gravity="end" />
Try removing :
In the first
EditText. It should automatically make the textRTLif you already placed arabicvalues-arin values folder.Don't forget to add:
In
AndroidManifest.xmlalso.Update;
Didn’t get you at first but, add these:
This will make the layout & text direction
rtland should help for the purpose.