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
feat: add property css text-align justify #9573
Conversation
|
@vallemar awesome PR thank you! |
| case 'justify': | ||
| // android.os.Build.VERSION_CODES.O | ||
| if (android.os.Build.VERSION.SDK_INT >= 25) { | ||
| this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to handle the cas when you change back from justify and thus call this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_NONE);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! changed code
PR Checklist
What is the current behavior?
Now the
text-align: justifyproperty is not supportedWhat is the new behavior?
Now it supports the property, in android it is supported since version 8
Implements: #2614
PR doc: NativeScript/docs-new#39
The text was updated successfully, but these errors were encountered: