mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 22:01:42 +08:00
fix(android): version Android text-align justify
This commit is contained in:
@ -296,7 +296,7 @@ export class TextBase extends TextBaseCommon {
|
|||||||
this.nativeTextViewProtected.setGravity(android.view.Gravity.START | verticalGravity);
|
this.nativeTextViewProtected.setGravity(android.view.Gravity.START | verticalGravity);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (android.os.Build.VERSION.SDK_INT >= 25) {
|
if (android.os.Build.VERSION.SDK_INT >= 26) {
|
||||||
if (value === 'justify') {
|
if (value === 'justify') {
|
||||||
this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD);
|
this.nativeTextViewProtected.setJustificationMode(android.text.Layout.JUSTIFICATION_MODE_INTER_WORD);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user