2

I trying to type Persion text on Android edit text but nothing showed on edit text but it works in English. I am using Genymotion virtual device.

This is the xml:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:padding="20dp"
  android:layoutDirection="rtl"
  android:textDirection="rtl"
  android:layout_height="match_parent">


    <EditText
    android:hint="نام ..."
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/editName"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true" />

</RelativeLayout>
Gulmuhammad Akbari
  • 1,986
  • 2
  • 13
  • 28

2 Answers2

0

It may be because of the "language and input settings" in your virtual device.

If this is the problem you have to go to Settings > Language & Input; under the keyboard and input methods select Default and click set up input methods. There, you can add several input languages into the keyboard of the Virtual Devices (and also set one as the default language).

Note: the path may differ from device to device.

elyar abad
  • 771
  • 1
  • 8
  • 27
0

Find the set up input methods settings in your VD and add any language you need...

agatha
  • 11
  • 6