public SubAdapter(ArrayList<Bean.T1348647853363Bean> datas){ super(datas); this.datas = datas;
}
public void setContext(Context context){ this.context = context; }
public void setOnClickRecycler(OnClickRecycler onClickRecycler){ this.clickRecycler = onClickRecycler; }
@NonNull @Override public BaseHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int i) { View view = LayoutInflater.from(context).inflate(setItemLayout(),viewGroup,false); SubAdapter.SubHolder subHolder = new SubAdapter.SubHolder(view);
return subHolder; }
@Override public int setItemLayout() { return R.layout.itemlayout; }
@Override public void bindView_Holder(BaseHolder baseHolder, final int position) { SubAdapter.SubHolder subHolder = (SubAdapter.SubHolder)baseHolder; Glide.with(context).load(datas.get(position).getImgsrc()).into(subHolder.imageView);