|  |  |  | 
|---|
|  |  |  | import com.dayu.baselibrary.databinding.ItemNoMoreBinding; | 
|---|
|  |  |  | import com.dayu.baselibrary.utils.DateUtil; | 
|---|
|  |  |  | import com.dayu.henanlibrary.R; | 
|---|
|  |  |  | import com.dayu.henanlibrary.databinding.ItemNewCardBinding; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dayu.henanlibrary.databinding.ItemNewCardHnBinding; | 
|---|
|  |  |  | 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 { | 
|---|
|  |  |  | ItemNewCardBinding binding = DataBindingUtil.inflate((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE), R.layout.item_new_card, parent, false); | 
|---|
|  |  |  | ItemNewCardHnBinding binding = DataBindingUtil.inflate((LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE), R.layout.item_new_card_hn, parent, false); | 
|---|
|  |  |  | return new ViewHolder(binding); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | static class ViewHolder extends RecyclerView.ViewHolder { | 
|---|
|  |  |  | ItemNewCardBinding mBinding; | 
|---|
|  |  |  | ItemNewCardHnBinding mBinding; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public ItemNewCardBinding getBinding() { | 
|---|
|  |  |  | public ItemNewCardHnBinding getBinding() { | 
|---|
|  |  |  | return mBinding; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setBinding(ItemNewCardBinding binding) { | 
|---|
|  |  |  | public void setBinding(ItemNewCardHnBinding binding) { | 
|---|
|  |  |  | this.mBinding = binding; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public ViewHolder(ItemNewCardBinding itemView) { | 
|---|
|  |  |  | public ViewHolder(ItemNewCardHnBinding itemView) { | 
|---|
|  |  |  | super(itemView.getRoot()); | 
|---|
|  |  |  | this.mBinding = itemView; | 
|---|
|  |  |  |  | 
|---|