initial commit

This commit is contained in:
Vladimir Enchev
2015-11-09 11:57:32 +02:00
parent ed489585ec
commit c85d2a7afc
3 changed files with 56 additions and 0 deletions

View File

@@ -101,6 +101,17 @@ export class ScrollView extends contentView.ContentView implements definition.Sc
}
this._android.setId(this._androidViewId);
var that = new WeakRef(this);
this._android.getViewTreeObserver().addOnScrollChangedListener(new android.view.ViewTreeObserver.OnScrollChangedListener({
onScrollChanged: function () {
var rootScrollView = that.get();
if (rootScrollView && rootScrollView.android) {
var scrollX = rootScrollView.android.getScrollX(); //for horizontalScrollView
var scrollY = rootScrollView.android.getScrollY(); //for verticalScrollView
}
}
});
}
public _onOrientationChanged(oldValue: string, newValue: string) {