When adding on my androidManifest: android:supportsRtl="true"
my TextView with text "-1390" is shown as "1390-"
how can I fix it?
(edit) This is my current problematic textView:
<TextView
android:id="@+id/header_account_balance"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="left"
android:inputType="numberSigned"
android:text="\u200F -10,452"
android:textAlignment="gravity"
android:textColor="@color/black"
android:textDirection="rtl" *ltr did not work as well*
android:textSize="26sp"
android:textStyle="bold"/>
I know this is an old question, but for those who need an answer, just try to wrap you number with:
"\u202D your number \u202C"
This will do the work.
You can override this behavior by specifying android:textDirection="ltr" on the TextView. You can also set that attribute on the root ViewGroup of your layout, if you want all of the textual Views it contains to layout their text left-to-right.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With