BaseRecyclerViewAdapterHelper本身已经为我们封装好了多布局,我们只需要做几个类的封装即可
1.首先我们需要准备好一个实体类,以我做的项目实体类为例.
public class GHnovideoFamenBean {
private String position;
private String funDescription;
private String id;
private String devTypeNo;
private String controllerName;
private String buttonType;
private String maxAlarmValue;
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public String getFunDescription() {
return funDescription;
}
public void setFunDescription(String funDescription) {
this.funDescription = funDescription;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getDevTypeNo() {
return devTypeNo;
}
public void se