title: Not able to update data on BottomSheet from RecyclerView
body: <p>In my app there is this activity where data are shown in <code>RecyclerView</code>.</p>
  <p>I have added the BottomSheetBehavior too. Here, I wanted to show user the <code>Data</code> which he or she has selected at the <code>RecyclerView</code>.</p>
  <p>Here is the thing which makes it interesting that when I click on the <code>RecyclerView</code> the data loads on the Bottom sheet but after that again if I click on different <strong>position</strong> at <code>recyclerData</code> it's still loads the <strong>previous</strong> data not the different <strong>position</strong> <code>data</code>.</p>
  <p>My query is how can I resolve this, I wanted to show particular click position data from recyclerview to BottomSheet.</p>
  <p>It's not that I am not able to display but nomatter whichever position I click on <code>RecyclerView</code> the same data is being <strong>Displayed</strong> on BottomSheet</p>
  <p>Here is my code <strong><code>onBindViewHolder</code></strong>:</p>
  <pre><code> //RecyclerViewCode
      Glide.with(activity).load(data.getITEM_IMAGE()).error(R.drawable.googleg_standard_color_18)
              .into(holder.recyclerViewItemImageViewAdapter);
  
      holder.recyclerViewItemNameAdapter.setText(data.getITEM_NAME());
      holder.recyclerViewItemPriceAdapter.setText(&quot;₹ &quot;+data.getITEM_PRICE());
      holder.recyclerViewTimeForPreparation.setText(data.getITEM_PREPARATION_TIME());
      holder.recyclerViewItemDescriptionAdapter.setText(data.getITEM_DESCRIPTION());
  
      if (!itemDataList.get(position).getAVAILABILITY().equals(&quot;false&quot;)){
          holder.itemUnavailability.setVisibility(View.GONE);
          holder.recyclerViewItemAvailability.setVisibility(View.GONE);
          
          //BottomSheetBehavior Object:
          selectedItemFoodAvailability.setText(&quot;Available&quot;);
          selectedItemFoodAvailability.setTextColor(Color.parseColor(&quot;#95C869&quot;));
  
          if (itemDataList.get(position).getITEM_RATTING().equals(&quot;null&quot;)){
  
              holder.recyclerViewItemRattingAdapter.setText(&quot;--&quot;);
              holder.imageViewRattingStar.setVisibility(View.VISIBLE);
  
          }else{
  
              holder.recyclerViewItemRattingAdapter.setText(data.getITEM_RATTING());
              holder.imageViewRattingStar.setVisibility(View.VISIBLE);
  
          }
  
      }else{
  
          holder.itemUnavailability.setVisibility(View.GONE);
          holder.itemUnavailability.setClickable(false);
          holder.recyclerViewItemAvailability.setText(&quot;Currently unavailable&quot;);
          holder.recyclerViewItemAvailability.setAllCaps(true);
  
      //BottomSheetBehavior Object:   
          selectedItemFoodAvailability.setTextColor(Color.parseColor(&quot;#FD7A49&quot;));
          selectedItemFoodAvailability.setText(&quot;UNAVAILABLE&quot;);
  
      }
  
      //BottomSheetBehavior attaching RecyclerData
      selectedFoodName.setText(itemDataList.get(position).getITEM_NAME());
                      Glide.with(activity).load(itemDataList.get(position).getITEM_IMAGE()).error(R.drawable.googleg_standard_color_18)
                              .into(selectedItemFoodImage);
                      selectedItemFoodDescription.setText(itemDataList.get(position).getITEM_DESCRIPTION());
                      selectedItemFoodPrice.setText(itemDataList.get(position).getITEM_PRICE());
                      if (!itemDataList.get(position).getAVAILABILITY().equals(&quot;false&quot;)){
                          selectedItemFoodAvailability.setText(&quot;Available&quot;);
                          selectedItemFoodAvailability.setTextColor(Color.parseColor(&quot;#95C869&quot;));
                      }else{
  
                          selectedItemFoodAvailability.setTextColor(Color.parseColor(&quot;#FD7A49&quot;));
                          selectedItemFoodAvailability.setText(&quot;UNAVAILABLE&quot;);
                      }
  
  
      holder.itemView.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              View sheet= activity.findViewById(R.id.SelectedBottomSheetForFood);
              bottomSheetBehavior= bottomSheetBehavior.from(sheet);
              bottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
  
          }
      });
  
      selectedItemFoodShop.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              Intent intent= new Intent(activity.getApplicationContext(), Shop.class);
              intent.putExtra(&quot;uid&quot;, data.getCLIENT_UID());
              intent.putExtra(&quot;type&quot;,data.getTREE());
              activity.startActivity(intent);
          }
      });
  
      selectedItemFoodAddCartButton.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
              if (!data.getAVAILABILITY().equals(&quot;false&quot;)){
                  Toast.makeText(activity, &quot;item &quot;+data.getITEM_NAME()+&quot; added to cart&quot;, Toast.LENGTH_SHORT).show();
  
              }
              else{
  
                  Toast.makeText(activity, &quot;Unable to place order for selected Item&quot;, Toast.LENGTH_SHORT).show();
              }
  
          }
      });
  </code></pre>
  <p>Can anyone help me???
  Thank you</p>