提示出问题的就是这两段代码,找了一天也不知道到底错在哪,求解答,感谢。
private void setData() {
tvShopName.setText(bean.getShopName());
tvNotice.setText(bean.getShopNotice());
Glide.with(this).load(bean.getShopPic())
.error(R.mipmap.ic_launcher)
.into(ivShopPic);
adapter.setData(bean.getFoodList());
}
public void setData(List<FoodBean> beans){
beans.clear();
this.beans.addAll(beans);
notifyDataSetChanged();//通知listview刷新数据
}