title: How to hit API in RecyclerView for every row by Activity Button event
body: <p>I developing an app in which there are many rows in Recyclerview, I have to update the Available quantity of all the rows by Single Button on Activity.When i will click on Confirm All button on Activity it will update all rows one by one.</p>
  
  <p>I have already done the single update by confirm button on every row, but i'm not getting the idea how to do by single click same thing one by one.I'm using Volley here.</p>
  
  <p>User will update Available Qty of all rows at a time &amp; by single tab have to update all the rows.</p>
  
  <p><a href="https://i.stack.imgur.com/MOHDY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MOHDY.png" alt="Image Here"></a></p>
  
  <p><strong>My Recycler Adapter:</strong></p>
  
  <pre><code>public class AdjustInventoryAdapter extends 
  RecyclerView.Adapter&lt;AdjustInventoryAdapter.MyViewHolder&gt; {
  List&lt;AdjustResult&gt; list;
  Context context;
  
  public AdjustInventoryAdapter(Context context, List&lt;AdjustResult&gt; result) {
      this.context = context;
      this.list=result;
  }
  
  @Override
  public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
      View itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.adjust_inventory_row, parent, false);
      return new MyViewHolder(itemView);
  }
  
  @Override
  public void onBindViewHolder(final MyViewHolder holder, final int position) {
      final AdjustResult listPotn = list.get(position);
      holder.name.setText(listPotn.getName());
      holder.sku.setText(listPotn.getSku());
      holder.upc.setText(listPotn.getUpc());
      holder.availableQty.setText(listPotn.getOnHandQty());
  
  
      holder.editBtn.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              ((AdjustInventory)context).editQuantity(listPotn.getSku(),holder.availableQty.getText().toString().trim(),holder.getPosition());
  
          }
      });
  
  }
  
  
  
  
  @Override
  public int getItemCount() {
      return list.size();
  }
  
  class MyViewHolder extends RecyclerView.ViewHolder{
      TextView name,sku,upc;
      Button editBtn;
      EditText availableQty;
      ImageView imageView;
  
      public MyViewHolder(View itemView) {
          super(itemView);
  
          name = (TextView)itemView.findViewById(R.id.nameAdjust);
          sku = (TextView)itemView.findViewById(R.id.skuAdjust);
          upc = (TextView)itemView.findViewById(R.id.upcAdjust);
          editBtn = (Button) itemView.findViewById(R.id.btnEditAdjust);
          availableQty = (EditText) 
          itemView.findViewById(R.id.availableQtyAdjust);
         // imageView = (ImageView) itemView.findViewById(R.id.imgAdjust);
  
      }
  }
  </code></pre>