_createNativeView to createNativeView;
_initNativeView to initNativeView
_disposeNativeView to disposeNativeView
_resetNativeView to resetNativeView
This commit is contained in:
Hristo Hristov
2017-03-28 13:05:11 +03:00
parent f2898f84d5
commit c18a76c93a
38 changed files with 111 additions and 110 deletions

View File

@ -72,7 +72,7 @@ export class ListPicker extends ListPickerBase {
nativeView: android.widget.NumberPicker;
private _selectorWheelPaint: android.graphics.Paint;
public _createNativeView() {
public createNativeView() {
initializeNativeClasses();
const picker = new android.widget.NumberPicker(this._context);
@ -98,7 +98,7 @@ export class ListPicker extends ListPickerBase {
return picker;
}
public _initNativeView(): void {
public initNativeView(): void {
const nativeView = this.nativeView;
this._selectorWheelPaint = getSelectorWheelPaint(nativeView);
(<any>nativeView).formatter.owner = this;
@ -115,7 +115,7 @@ export class ListPicker extends ListPickerBase {
}
}
public _disposeNativeView() {
public disposeNativeView() {
const nativeView = this.nativeView;
(<any>nativeView).formatter.owner = null;
(<any>nativeView).valueChangedListener.owner = null;