#我使用了滾動列表視圖裏面,但列表視圖不滾動視圖作爲頂級父視圖爲什麼列表視圖不滾動滾動視圖裏面在nativescrit angular2
component.html
<ScrollView>
<StackLayout class="zindex">
<!--<AutoComplete [items]="ArrayVillage" (itemTap)="itemTapped($event)"> </AutoComplete>-->
<SearchBar row="0" #sb hint="Search for a country and press enter" (clear)="onClear()" [text]="searchPhrase" (submit)="onSubmit(sb.text)"></SearchBar>
<ListView row="1" [items]="myItems" class="list-group">
<template let-item="item">
<GridLayout class="item" class="list-group-item">
<Label [text]="item.name" class="list-group-item-heading"></Label>
</GridLayout>
</template>
</ListView>
</StackLayout>
<ScrollView>
如果是這樣的,除非你想要的搜索欄來移動你不需要滾動視圖的整個佈局。 Listviews默認爲滾動。也許你是在一個不同的最終結果比我想象的,但如果你只是想列表滾動刪除滾動視圖 –
我有很多組件內滾動不僅列表視圖 –