禁用 ListView 滚动弹跳
Disable ListView scroll bouncing
是否可以使用经典 ListView 禁用滚动弹跳?
<ListView [items]="countries">
<ng-template let-country="item" let-i="index" let-odd="odd" let-even="even">
<StackLayout>
</StackLayout>
</ng-template>
</ListView>
在本机视图 (UITableView) 上将 bounces
属性设置为 false
。
onLoaded(args) {
if (args.object.ios) {
args.object.ios.bounces = false;
}
}
是否可以使用经典 ListView 禁用滚动弹跳?
<ListView [items]="countries">
<ng-template let-country="item" let-i="index" let-odd="odd" let-even="even">
<StackLayout>
</StackLayout>
</ng-template>
</ListView>
在本机视图 (UITableView) 上将 bounces
属性设置为 false
。
onLoaded(args) {
if (args.object.ios) {
args.object.ios.bounces = false;
}
}