mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Merge pull request #3803 from NativeScript/hhristov/label-single-line
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