title: Want to repeat items in recyclerview
body: <p>I want to repeat the items in recyclerview. After searching I couldn't find any soulution. I want to start the items again from the first after it is completed loading. I have done simple coding of getting data in recyclerview. </p>
  
  <pre><code>     public class DateAdapter extends RecyclerView.Adapter&lt;DateAdapter.DateViewHolder&gt; {
          private ArrayList&lt;LabelerDate&gt; dateDataList;
  
  
          private static final int VIEW_TYPE_PADDING = 1;
          private static final int VIEW_TYPE_ITEM = 2;
          private int paddingHeightDate = 0;
  
          private int selectedItem = -1;
  
          public DateAdapter(ArrayList&lt;LabelerDate&gt; dateData, int paddingHeightDate) {
              this.dateDataList = dateData;
              this.paddingHeightDate = paddingHeightDate;
  
          }
  
  
          @Override
          public DateViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
              if (viewType == VIEW_TYPE_ITEM) {
                  final View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.recyclerview_item,
                          parent, false);
                  return new DateViewHolder(view);
              } else {
                  View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.recyclerview_item,
                          parent, false);
  
                  RecyclerView.LayoutParams layoutParams = (RecyclerView.LayoutParams) view.getLayoutParams();
                  layoutParams.height = paddingHeightDate;
                  view.setLayoutParams(layoutParams);
                  return new DateViewHolder(view);
              }
          }
  
          @Override
          public void onBindViewHolder(DateViewHolder holder, int position) {
              LabelerDate labelerDate = dateDataList.get(position);
              int count = dateDataList.size();
              int middleRowIndex = (int)count/2 ;
  //            holder.tvDate.setTextSize(TypedValue.COMPLEX_UNIT_SP,(int)(count * middleRowIndex));
  //            int prevIndex = middleRowIndex - 1;
  //            int nextIndex = middleRowIndex + 1;
  
              if (getItemViewType(position) == VIEW_TYPE_ITEM) {
                  holder.tvDate.setText(labelerDate.getNumber());
                  holder.tvDate.setVisibility(View.VISIBLE);
  
                  Log.d(TAG, "default " + position + ", selected " + selectedItem);
                  if (position == selectedItem) {
                      Log.d(TAG, "center" + position);
                      holder.tvDate.setTextColor(Color.parseColor("#76FF03"));
                      holder.tvDate.setTextSize(35);
  
                  } else {
                      holder.tvDate.setTextColor(Color.BLACK);
                      holder.tvDate.setTextSize(18);
                  }
              } else {
                  holder.tvDate.setVisibility(View.INVISIBLE);
              }
          }
  
          public void setSelecteditem(int selecteditem) {
              this.selectedItem = selecteditem;
              notifyDataSetChanged();
          }
  
          @Override
          public int getItemCount() {
              return dateDataList.size();
          }
  
          @Override
          public int getItemViewType(int position) {
              LabelerDate labelerDate = dateDataList.get(position);
              if (labelerDate.getType() == VIEW_TYPE_PADDING) {
                  return VIEW_TYPE_PADDING;
              } else {
                  return VIEW_TYPE_ITEM;
              }
  
          }
  
  
          public class DateViewHolder extends RecyclerView.ViewHolder {
              public TextView tvDate;
  
              public DateViewHolder(View itemView) {
                  super(itemView);
                  tvDate = (TextView) itemView.findViewById(R.id.tv_year);
              }
          }
      }
  </code></pre>
  
  <p>I want to implement like below</p>
  
  <blockquote>
    <p>item1 item2 item3 item4 item5 item1 item2 item3 item4 item5</p>
  </blockquote>