-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
环境: android
第一次上拉的时候显示了footer并且正常执行了onLoadMore
, 加载到了数据之后, 继续向上拉,当第二次达到列表尾部时, 这时候footer被隐藏了没有执行onLoadMore
看了下源码,原因应该是
this._canLoadMore
这个变量第一次onLoadMore
之后就被设置成false
,导致之后无法继续加载
下面是我的代码:
<PullToRefreshListView
viewType={PullToRefreshListView.constants.viewType.listView}
ref={comp => this._pullToRefreshListView = comp}
dataSource={this.state.ds}
renderRow={this.renderRow.bind(this)}
renderHeader={this.renderRefreshHeader.bind(this)}
renderFooter={this.renderFooter.bind(this)}
removeClippedSubviews={true}
enableEmptySections
pagingEnabled={false}
pageSize={28}
initialListSize={28}
onEndReachedThreshold={10}
onLoadMore={this.onLoadMore.bind(this)}
onRefresh={this.onRefresh.bind(this)}
autoLoadMore={true}
>
</PullToRefreshListView>
xyy7260
Metadata
Metadata
Assignees
Labels
No labels