80,349
社区成员
发帖
与我相关
我的任务
分享
@Override
public void refresh(Object... param) {
// TODO Auto-generated method stub
int type=(Integer) param[0];
if(type==Constant.GET_GIFT_LIST_CONTENT){
Utility.closeProgressDialog();
listView.onLoadMoreComplete(3);
listView.onRefreshComplete();
List<GiftListItemBean> list=(List<GiftListItemBean>) param[1];
if(refresh_flag){ //如果是刷新操作,则将原数据清空
allList.clear();
refresh_flag=false;
}
allList.addAll(list);
if(allList.size()>0){
adapter.notifyDataSetChanged();
}
}
}