Recyclerview Not Correctly Displaying Heterogenous Layouts
I am developing a weather app in which i wanted to use two Views inside RecyclerView which is having CursorAdapter as its member. I want to use one View to display todays weather a
Solution 1:
You should also have a getItemViewType() in WeatherAdapter. You only have it in the CursorAdapter.
@Override
int getItemViewType (int position) {
return mCursorAdapter.getItemViewType(position);
}
Post a Comment for "Recyclerview Not Correctly Displaying Heterogenous Layouts"