Open verilog15 opened 4 years ago
First of all, sorry for my ignorance about RTL. Since it's not my native practice, I don't understand it well. I was under the impression that for RTL, phone code should be on the right of the phone edit text. Also since Country picker is just an element that you can put anywhere as per your need, I don't know how exactly I can help here.
I'm using the awesome library. I want to add support to RTL languages. I have the following layout:
I'm using CountryCodePickerProject in my project (awesome library). It allows to set a phone number prefix to the number. I wrote the following layout:
<LinearLayout android:id="@+id/login_phone_layout" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical">
It basically creates the following display:
In LTR language it looks great. But when I change the language of the phone to RTL it displays:
It looks strange because the prefix should be on the left side of the phone number (even in RTL). Speaking of UI/UX thinking, what would be the best solution here to display RTL so it won't look awkward? Maybe force it to be on the left side? But then you will have something like:
+11 [________ملحوظة]
.