mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup reexports
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
import { ItemEventData, ItemsSource } from ".";
|
||||
import {
|
||||
ListViewBase, View, KeyedTemplate, Length, unsetValue, Observable, Color,
|
||||
ListViewBase,
|
||||
separatorColorProperty, itemTemplatesProperty
|
||||
} from "./list-view-common";
|
||||
import { View, KeyedTemplate } from "../core/view";
|
||||
import { unsetValue } from "../core/properties";
|
||||
import { Color } from "../../color";
|
||||
import { Observable } from "../../data/observable";
|
||||
import { Length } from "../styling/style-properties";
|
||||
import { StackLayout } from "../layouts/stack-layout";
|
||||
import { ProxyViewContainer } from "../proxy-view-container";
|
||||
import { LayoutBase } from "../layouts/layout-base";
|
||||
@@ -50,7 +55,7 @@ export class ListView extends ListViewBase {
|
||||
public _realizedItems = new Map<android.view.View, View>();
|
||||
public _realizedTemplates = new Map<string, Map<android.view.View, View>>();
|
||||
|
||||
@profile
|
||||
@profile()
|
||||
public createNativeView() {
|
||||
const listView = new android.widget.ListView(this._context);
|
||||
listView.setDescendantFocusability(android.view.ViewGroup.FOCUS_AFTER_DESCENDANTS);
|
||||
@@ -265,7 +270,7 @@ function ensureListViewAdapterClass() {
|
||||
return itemViewType;
|
||||
}
|
||||
|
||||
@profile
|
||||
@profile()
|
||||
public getView(index: number, convertView: android.view.View, parent: android.view.ViewGroup): android.view.View {
|
||||
//this.owner._dumpRealizedTemplates();
|
||||
|
||||
|
||||
@@ -264,7 +264,7 @@ export class ListView extends ListViewBase {
|
||||
this.ios.clipsToBounds = true;
|
||||
}
|
||||
|
||||
@profile
|
||||
@profile()
|
||||
public onLoaded() {
|
||||
super.onLoaded();
|
||||
if (this._isDataDirty) {
|
||||
|
||||
@@ -202,7 +202,7 @@ itemTemplateProperty.register(ListViewBase);
|
||||
export const itemTemplatesProperty = new Property<ListViewBase, string | Array<KeyedTemplate>>({
|
||||
name: "itemTemplates", valueConverter: (value) => {
|
||||
if (typeof value === "string") {
|
||||
return Builder.parseMultipleTemplates(value);
|
||||
return Builder.parseMultipleTemplates(value, null);
|
||||
}
|
||||
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user