mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
feat(css): text-stroke support (#10399)
closes https://github.com/NativeScript/NativeScript/issues/3597 closes https://github.com/NativeScript/NativeScript/issues/3972
This commit is contained in:
@ -7,12 +7,10 @@ import { CoreTypes } from '../../core-types';
|
||||
|
||||
export * from '../text-base';
|
||||
|
||||
let TextView: typeof android.widget.TextView;
|
||||
|
||||
@CSSType('Label')
|
||||
export class Label extends TextBase implements LabelDefinition {
|
||||
nativeViewProtected: android.widget.TextView;
|
||||
nativeTextViewProtected: android.widget.TextView;
|
||||
nativeViewProtected: org.nativescript.widgets.StyleableTextView;
|
||||
nativeTextViewProtected: org.nativescript.widgets.StyleableTextView;
|
||||
|
||||
get textWrap(): boolean {
|
||||
return this.style.whiteSpace === 'normal';
|
||||
@ -27,11 +25,7 @@ export class Label extends TextBase implements LabelDefinition {
|
||||
|
||||
@profile
|
||||
public createNativeView() {
|
||||
if (!TextView) {
|
||||
TextView = android.widget.TextView;
|
||||
}
|
||||
|
||||
return new TextView(this._context);
|
||||
return new org.nativescript.widgets.StyleableTextView(this._context);
|
||||
}
|
||||
|
||||
public initNativeView(): void {
|
||||
|
Reference in New Issue
Block a user