Search code examples
androidandroid-edittextandroid-custom-viewarabic

PinView not showing for Arabic language


In my application I am using PinView library read the number. Now when the language is English this layout is showing and when I change the language to Arabic This view is not showing. Here is the views of Arabic and English. I added background color to check is the view is there or not, The view is there but the Cells are not displaying. Here is the views,

English enter image description here

Arabic enter image description here

While tap on the orange color the keyboard is opened.

Here is the xml code I used to display,

             <com.chaos.view.PinView
                android:id="@+id/pinCodeView"
                style="@style/PinWidget.PinView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:minHeight="50dp"
                android:background="@color/colorPrimary"
                android:layout_marginTop="35dp"
                android:layout_marginBottom="30dp"
                app:lineColor="@color/white"
                android:textColor="@color/white"
                android:inputType="phone"
                android:padding="10dp"
                android:textSize="18sp"
                app:itemCount="10"
                app:itemSpacing="4dp"
                app:viewType="rectangle" />

Solution

  • Please upgrade to version 1.3.0. In 1.2.0, PinView does not support RTL.