RecyclerView with GridView
问题 Once I write a ListView demo, the ListView 's items have some different types. item1: Text Pic Pic Pic Pic Pic Pic item2: Text Pic Pic Pic Pic item3: Text Pic Pic Pic Pic Pic Pic Pic Pic Pic ... So I override the getViewTypeCount() and getItemViewType() .It work well. But Now I change to use RecyclerView . Is there a better solution?Please help me. 回答1: use getItemCount() { //pojo class array size return mDataset.size(); } 回答2: This is sample, you can create an item view with a textview and