content: package com.allen.recyclerview.adapter;
  
  import com.allen.recyclerview.R;
  import com.allen.recyclerview.data.DataServer;
  import com.allen.recyclerview.entry.Status;
  import com.chad.library.adapter.base.BaseQuickAdapter;
  import com.chad.library.adapter.base.BaseViewHolder;
  
  /**
   * https://github.com/CymChad/BaseRecyclerViewAdapterHelper
   */
  public class QuickClickAdapter extends BaseQuickAdapter<Status, BaseViewHolder> {
      public QuickClickAdapter() {
          super(R.layout.item, DataServer.getSampleData(100));
      }
  
      public QuickClickAdapter(int dataSize) {
          super(R.layout.item, DataServer.getSampleData(dataSize));
      }
  
      @Override
      protected void convert(BaseViewHolder helper, Status item) {
  //        helper.getConvertView().setBackgroundResource(R.drawable.card_click);
          helper.setText(R.id.tweetName, item.getUserName())
                  .setText(R.id.tweetText, item.getText())
                  .setText(R.id.tweetDate, item.getCreatedAt())
                  .setVisible(R.id.tweetRT, item.isRetweet())
                  .addOnClickListener(R.id.tweetAvatar)
                  .addOnClickListener(R.id.tweetName)
                  .addOnLongClickListener(R.id.tweetText)
          ;
  //        Glide.with(mContext).load(item.getUserAvatar()).crossFade().placeholder(R.mipmap.def_head).transform(new GlideCircleTransform(mContext)).into((ImageView) helper.getView(R.id.tweetAvatar));
      }
  
  }
  