1. 一个实体类RectclerItem
public class RecyclerItem implements MultiItemEntity { private String title; private String content; private int item_type; public RecyclerItem(int item_type){ this.item_type = item_type; } public RecyclerItem(String title, String content){ this.title = title; this.content = content; } public RecyclerItem(String title, String content, int item_type){ this.title = title; this.content = content; this.item_type = item_type; } public int getItem_type() { return item_type; } public void setItem_type(int item_type) { this.item_type = item_type; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getContent() { return content;