| | |
| | | import com.dayu.baselibrary.utils.DateUtil; |
| | | import com.dayu.henanlibrary.R; |
| | | import com.dayu.henanlibrary.activity.ReplacementActivity; |
| | | import com.dayu.henanlibrary.databinding.ItemReplacementBinding; |
| | | import com.dayu.henanlibrary.databinding.ItemReplacementHnBinding; |
| | | import com.dayu.henanlibrary.dbBean.UserCardBean; |
| | | |
| | | import java.util.List; |
| | |
| | | ItemNoMoreBinding emptyView = DataBindingUtil.inflate((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE), com.dayu.baselibrary.R.layout.item_no_more, parent, false); |
| | | return new ViewHolderEmpty(emptyView); |
| | | } else { |
| | | ItemReplacementBinding binding = DataBindingUtil.inflate((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE), R.layout.item_replacement, parent, false); |
| | | ItemReplacementHnBinding binding = DataBindingUtil.inflate((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE), R.layout.item_replacement_hn, parent, false); |
| | | return new ViewHolder(binding); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | static class ViewHolder extends RecyclerView.ViewHolder { |
| | | ItemReplacementBinding mBinding; |
| | | ItemReplacementHnBinding mBinding; |
| | | |
| | | public ItemReplacementBinding getBinding() { |
| | | public ItemReplacementHnBinding getBinding() { |
| | | return mBinding; |
| | | } |
| | | |
| | | public void setBinding(ItemReplacementBinding binding) { |
| | | public void setBinding(ItemReplacementHnBinding binding) { |
| | | this.mBinding = binding; |
| | | } |
| | | |
| | | public ViewHolder(ItemReplacementBinding itemView) { |
| | | public ViewHolder(ItemReplacementHnBinding itemView) { |
| | | super(itemView.getRoot()); |
| | | this.mBinding = itemView; |
| | | |