title: Recyclerview not showing items?
body: <p>I want to display the layout below on the <code>RecyclerView</code>. This layout duplicates depending on the number of Shops. Let's say we have 2 shops, so the user will see two layout of this, with different shop names.</p>
  
  <p><a href="https://i.stack.imgur.com/FFVcB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FFVcB.png" alt="Screenshot of Android Studio Design Editor on &lt;code&gt;item_checkout_delivery_slots&lt;/code&gt; layout"></a></p>
  
  <p>Adapter class:</p>
  
  <pre><code>public class DeliverySlotsAdapter extends RecyclerView.Adapter&lt;DeliverySlotsAdapter.ViewHolder&gt; {
  
  
      private Context context;
      LayoutInflater layoutInflater;
      List&lt;Object&gt; objects;
      private LayoutInflater inflater;
      private CallbackListener.SimpleCallback listener;
  
      public DeliverySlotsAdapter(Context context, List&lt;Object&gt; objects) {
          this.context = context;
          this.objects = objects;
          this.inflater = LayoutInflater.from(context);
      }
  
      public void setListener(CallbackListener.SimpleCallback listener) {
          this.listener = listener;
      }
  
      @Override
      public ViewHolder onCreateViewHolder(final ViewGroup parent, final int viewType) {
          RecyclerView.ViewHolder viewHolder;
          View view= inflater.inflate(R.layout.item_checkout_delivery_slots, parent, false);
          return  new ViewHolder(view);
      }
  
      @Override
      public void onBindViewHolder(final ViewHolder holder, final int position) {
          holder.bind(objects.get(position));
  
      }
  
      @Override
      public int getItemCount() {
          return objects.size() != 0 ? objects.size() : 0;
      }
  
      class ViewHolder extends RecyclerView.ViewHolder {
  //        @BindView(R.id.rlSchedule)
  //        RelativeLayout rlSchedule;
          @BindView(R.id.tvDeliveryScheduleLabel)
          TextView tvDeliveryScheduleLabel;
  //        @BindView(R.id.tvDeliverySchedule)
  //        TextView tvDeliverySchedule;
  
          public ViewHolder(View itemView) {
              super(itemView);
  
              itemView.setOnClickListener(v -&gt; {
                  if (listener!=null &amp;&amp; getAdapterPosition() != RecyclerView.NO_POSITION) {
                      listener.onItemClick(objects.get(getAdapterPosition()));
                  }
              });
          }
  
          public void bind(Object object){
              DeliverySlotItem deliverySlotItem = (DeliverySlotItem) object;
  //            DeliverySlotItem item = new DeliverySlotItem();
  //            Log.e("", "adfdfsf" + object);
  //            tvDeliveryScheduleLabel.setText(item.shop_name);
              tvDeliveryScheduleLabel.setText(deliverySlotItem.shop_name + " Delivery");
          }
  
      }
  
  }
  </code></pre>
  
  <p><code>tvDeliveryScheduleLabel</code> is getting the shop name but with the following code, it returns null:</p>
  
  <pre><code>tvDeliveryScheduleLabel.setText(deliverySlotItem.shop_name + "Delivery");
  </code></pre>
  
  <p>This is how I get the values.</p>
  
  <pre><code>Entity area = new Gson().fromJson(Preferences.getString(Prefkey.selected_area), Entity.class);
          this.controller.getItems(area.id, new CallbackListener.MultiEntityListener() {
              @Override
              public void onSuccess(List&lt;Object&gt; data, List&lt;Object&gt; included) {
  
                  List&lt;Entity&gt; include = AppUtil.cast(included);
                  List&lt;Entity&gt; shops = AppUtil.getEntitiesByType("shops", include);
  
  
                  for (Entity shop : shops) {
                      DeliverySlotItem deliverySlotItem = new DeliverySlotItem();
                      deliverySlotItem.shop_name = shop.attributes.name;
                      Preferences.setString(Prefkey.selected_shop, shop.toString());
                      objects.add(deliverySlotItem);
                      deliverySlotItems.add(deliverySlotItem);
  
                  }
              }
  
              @Override
              public void onFailed(Object object) {
  
              }
          });
  
          deliverySlotsAdapter = new DeliverySlotsAdapter(CheckoutActivity.this, objects);
  
          rv_deliveryslots.setLayoutManager(new LinearLayoutManager(CheckoutActivity.this));
          rv_deliveryslots.setAdapter(deliverySlotsAdapter);
  </code></pre>