程序中通过按钮进行翻页,向下翻页在list的底端,翻页后,不能自动回到顶部,于是这样滴实现:
adapter.notifyDataSetChanged();
if (!resultListView.isStackFromBottom()) {
resultListView.setStackFromBottom(true);
}
resultListView.setStackFromBottom(false);
setStackFromBottom :
When stack from bottom is set to true, the list fills its content starting from the bottom of the view.