Closed zs18340282344 closed 5 months ago
可以使用的,在ViewHolder里使用,像这样:
private static class ViewHolder extends BaseBindingHolder<DataItemBean, ItemHomeBinding> { ViewHolder(ViewGroup viewGroup, int layoutId) { super(viewGroup, layoutId); } @Override protected void onBindingView(BaseBindingHolder holder, DataItemBean bean, int position) { binding.tvText.setText(bean.getDes() + "-" + position); } }
外面还是正常的,具体:https://github.com/youlookwhat/ByRecyclerView/blob/master/app/src/main/java/me/jingbin/byrecyclerview/adapter/MultiAdapter.java
可以使用的,在ViewHolder里使用,像这样:
外面还是正常的,具体:https://github.com/youlookwhat/ByRecyclerView/blob/master/app/src/main/java/me/jingbin/byrecyclerview/adapter/MultiAdapter.java