mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Made label to be single line again
This commit is contained in:
@ -19,6 +19,8 @@ export class Label extends TextBase implements LabelDefinition {
|
||||
|
||||
public _createNativeView() {
|
||||
const textView = this._android = new android.widget.TextView(this._context);
|
||||
textView.setSingleLine(true);
|
||||
textView.setEllipsize(android.text.TextUtils.TruncateAt.END);
|
||||
return textView;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user