mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
add profile for functions, profile CSS-es on startup, use __time (#4227)
Call native setters once when a page is instantiated. Fix background not being reset, Label's background is now set to background, not layer Make the nativeView field instead of property for performance reasons
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
tabTextColorProperty, tabBackgroundColorProperty, selectedTabTextColorProperty,
|
||||
androidSelectedTabHighlightColorProperty, androidOffscreenTabLimitProperty,
|
||||
fontSizeProperty, fontInternalProperty, View, layout,
|
||||
traceCategory, traceEnabled, traceWrite, initNativeView, Color
|
||||
traceCategory, traceEnabled, traceWrite, Color
|
||||
} from "./tab-view-common"
|
||||
import { textTransformProperty, TextTransform, getTransformedText } from "../text-base";
|
||||
import { fromFileOrResource } from "../../image-source";
|
||||
@@ -212,13 +212,6 @@ export class TabViewItem extends TabViewItemBase {
|
||||
return this.nativeView;
|
||||
}
|
||||
|
||||
public setNativeView(textView: android.widget.TextView): void {
|
||||
this.nativeView = textView;
|
||||
if (textView) {
|
||||
initNativeView(this);
|
||||
}
|
||||
}
|
||||
|
||||
public _update(): void {
|
||||
const tv = this.nativeView;
|
||||
if (tv) {
|
||||
|
||||
Reference in New Issue
Block a user