-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Android align-text bug with Arabic characters #6051
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
HI @hamzahio, |
@tsonevn thanks for your response I think android does this for RTL languages so they automatically change the alignment for RTL languages. Is there any dirty fix because my app will launch in production today. |
Hi @hamzahio,
This should help you in specifying the correct alignment for the text. |
@tsonevn correct but I didn't know the language of data I got from server so the label will be
|
HI @hamzahio,
For your convinience I am also attaching sample project. |
This is no fix... |
Uh oh!
There was an error while loading. Please reload this page.
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo? Yes
Tell us about the problem
Problem with Text alignment in Android if Label given text-align: right; and the text is LTR it works ok but when text is RTL for example Arabic text goes to the other way.
Which platform(s) does your issue occur on?
Android
Please provide the following version numbers that your issue occurs with:
tns --version
to fetch it)node_modules/tns-core-modules/package.json
file in your project)"tns-android"
and"tns-ios"
properties in thepackage.json
file of your project)package.json
file of yourproject)
Please tell us how to recreate the issue in as much detail as possible.
The best approach would be to get your code running in the NativeScript Playground and share the link with us, along with any additional details or steps to reproduce needed for examining the issue there.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
xml
css
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: