title: Recyclerview display only 3 items with view more to display all the data
body: <p>enter code hereI'm trying to create a recyclerview to display only 3 items everytime it executes then there is a View More to see more items.</p>
  
  <pre><code>ServicesAdapter 
  
  
  @Override
  public void onBindViewHolder(@NonNull MyViewHolder myViewHolder, int i) {
      TypeProducts str = services.get(myViewHolder.getAdapterPosition());
  
      myViewHolder.title.setText(str.getName());
      Glide.with(context).load(str.getImageUrl()).into(myViewHolder.imageView);
  
  }
  </code></pre>
  
  <p>ServiceScreenAdapter</p>
  
  <pre><code>public void onBindViewHolder(@NonNull MyViewHolder myViewHolder, int i) {
      TypeServices str = typeServices.get(myViewHolder.getAdapterPosition());
  
  
      Log.d("getsize",String.valueOf(typeServices.size()));
  
  
      ServicesAdapter serviceadapter = new ServicesAdapter(context, str.getProducts());
  
  
      myViewHolder.tvTitle.setText(str.getName());
      myViewHolder.rclist.setAdapter(serviceadapter);
  
      myViewHolder.tvViewMore.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
          }
      });
  
  
  }
  </code></pre>