title: RecyclerView add a Footer
body: <p>I'm trying to add a button as the last item of my RecyclerView. I've already saw a few tutorials but I can't figure it out yet. I add items from my Main Class with an array list. </p>
  
  <pre><code>public class MyAdapter extends RecyclerView.Adapter&lt;MyAdapter.MyViewHolder&gt; {
  
  public Context context;
  private List&lt;Archivos&gt; mDataset;
  
  public MyAdapter(Context context, List&lt;Archivos&gt; myDataset) {
      this.context = context;
      this.mDataset = myDataset;
  }
  
  @Override
  public MyAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View v = LayoutInflater.from(parent.getContext())
              .inflate(R.layout.card_item, parent, false);
      Log.d("VIVZ", "onCreateHolder called");
      return new MyViewHolder(v);
  }
  
  @Override
  public void onBindViewHolder(MyViewHolder holder, int position) {
      holder.mTextTitle.setText(mDataset.get(position).titulo);
      holder.mTextDescription.setText(mDataset.get(position).descripcion);
      holder.mTextType.setText(mDataset.get(position).type);
      holder.mImageView.setImageDrawable(mDataset.get(position).icon);
  }
  
  @Override
  public int getItemCount() {
      return mDataset.size();
  }
  
  @Override
  public int getItemViewType(int position) {
      return (position == mDataset.size()) ? R.layout.fr_signup : R.layout.card_item;
  }
  
  class MyViewHolder extends RecyclerView.ViewHolder implements RecyclerView.OnClickListener {
      private CardView mCardView;
      private TextView mTextTitle;
      private TextView mTextDescription;
      private TextView mTextType;
      private ImageView mImageView;
  
      private MyViewHolder(View v) {
          super(v);
          mCardView = v.findViewById(R.id.card_view);
          mTextTitle = v.findViewById(R.id.card_doc_tittle);
          mTextDescription = v.findViewById(R.id.card_doc_description);
          mTextType = v.findViewById(R.id.card_doc_type);
          mImageView = v.findViewById(R.id.iv_image);
          mCardView.setOnClickListener(this);
      }
  
  }
  </code></pre>