|
@ -52,12 +52,15 @@ public class LayoutAdapter extends RecyclerView.Adapter<IViewHolder> {
|
52
|
52
|
|
53
|
53
|
public void setData(ArrayList<TalkRecommendBean> datas) {
|
54
|
54
|
talkRecommendBeans = datas;
|
55
|
|
notifyDataSetChanged();
|
|
55
|
notifyItemRangeChanged(1,talkRecommendBeans.size());
|
|
56
|
// notifyDataSetChanged();
|
56
|
57
|
}
|
57
|
58
|
|
58
|
59
|
public void addData(ArrayList<TalkRecommendBean> datas) {
|
|
60
|
int size = talkRecommendBeans.size();
|
59
|
61
|
talkRecommendBeans.addAll(datas);
|
60
|
|
notifyDataSetChanged();
|
|
62
|
notifyItemRangeInserted(size,talkRecommendBeans.size());
|
|
63
|
// notifyDataSetChanged();
|
61
|
64
|
}
|
62
|
65
|
|
63
|
66
|
public ArrayList<TalkRecommendBean> getCurrentData() {
|