I have set up a RecyclerView like this
@Override public void setTenData(List<Data> dataList) { Timber.d("set ten drugs size %s",dataList.size()); this.dataList = dataList; dataListAdapter = new DataListingAdapter(getActivity(), this.dataList); mRecyclerView.setAdapter(dataListAdapter); } And in another method I get new data and when I try to refresh the RecyclerView like this
@Override public void setNewsData(List<Data> dataList) { this.dataList = dataList; Timber.d("size of news data %s",this.dataList.size()); dataListAdapter.notifyDataSetChanged(); } The RecyclerView doesn't get updated. What might be the problem?