title: Why the second RecyclerView is not working?
body: <p>I'm using two firebase UI Recycler views in a single activity. The first recycler view is working fine but I don't know why the second Recycler view is not populating. One thing I noticed that in the second recycler view 'OnBind' and 'OnCreate' methods are not called up?
  Basically, I'm trying to use two horizontal recycler views within a single activity.</p>
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      private FirebaseRecyclerOptions&lt;Video&gt; options;
      private FirebaseRecyclerAdapter&lt;Video, MyViewHolder&gt; adapter;
      private RecyclerView recyclerViewVideo;
  
      private FirebaseRecyclerOptions&lt;Meme&gt; optionsForHindiJokes;
      private FirebaseRecyclerAdapter&lt;Meme, MyViewHolder&gt; adapterForHindiJokes;
      private RecyclerView recyclerViewForHindiJokes;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          recyclerViewVideo = findViewById(R.id.recycler_view_video);
          recyclerViewVideo.setHasFixedSize(true);
          recyclerViewVideo.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,false));
  
          recyclerViewForHindiJokes = findViewById(R.id.recycler_view_hindi_jokes);
          recyclerViewForHindiJokes.setHasFixedSize(true);
          recyclerViewForHindiJokes.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false));
  
       /*   **/
  
          final FirebaseDatabase database = FirebaseDatabase.getInstance();
          DatabaseReference refToVideo1 = database.getReferenceFromUrl(&quot;https://memlo-a9291-default-rtdb.firebaseio.com/AppStructure/Videos/Video&quot;);
          refToVideo1.keepSynced(true);
          Query refToVideo = database.getReferenceFromUrl(&quot;https://memlo-a9291-default-rtdb.firebaseio.com/AppStructure/Videos/Video&quot;).limitToLast(20);
  
          options = new FirebaseRecyclerOptions.Builder&lt;Video&gt;().setQuery(refToVideo, Video.class).build();
  
          adapter= new FirebaseRecyclerAdapter&lt;Video, MyViewHolder&gt;(options) {
              @Override
              protected void onBindViewHolder(@NonNull MyViewHolder holder, int position, @NonNull final Video model) {
                  RequestOptions requestOptions = new RequestOptions();
                  requestOptions.placeholder(R.drawable.ic_memlo_without_background);
                  requestOptions.error(R.drawable.ic_memlo_without_background);
  
                  Glide.with(MainActivity.this)
                          .load(model.getVideoUrl())
                          .apply(requestOptions)
                          .thumbnail(Glide.with(MainActivity.this).load(model.getVideoUrl()))
                     //     .centerCrop()
                          .into(holder.imageOnCard);
  
                  holder.itemView.setOnClickListener(new View.OnClickListener() {
                      @Override
                      public void onClick(View view) {
  
                          Intent intent1 = new Intent(MainActivity.this, VideoPlayer.class);
                          intent1.putExtra(&quot;VIDEO_URL&quot;, model.getVideoUrl());
                          startActivity(intent1);
  
                      }
                  });
              }
  
              @NonNull
              @Override
              public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
  
                  View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.single_cards_layout, parent, false);
  
                  return new MyViewHolder(v);
              }
          };
  
          adapter.startListening();
          recyclerViewVideo.setAdapter(adapter);
  
  
          ////////////////////////////////////////////////
  
          Query refToHindiJokes = database.getReferenceFromUrl(&quot;https://memlo-a9291-default-rtdb.firebaseio.com/AppStructure/Memes/Category/Hindi%20Jokes&quot;);
          optionsForHindiJokes = new FirebaseRecyclerOptions.Builder&lt;Meme&gt;().setQuery(refToHindiJokes, Meme.class).build();
  
          adapterForHindiJokes = new FirebaseRecyclerAdapter&lt;Meme, MyViewHolder&gt;(optionsForHindiJokes) {
              @Override
              protected void onBindViewHolder(@NonNull MyViewHolder holder, int position, @NonNull Meme model) {
  
                  Toast.makeText(getApplicationContext(),&quot;Calling&quot;, Toast.LENGTH_LONG).show();
  
                  Glide.with(getApplicationContext())
                          .load(model.getImageUrl())
                          .into(holder.imageOnCard);
  
              }
  
              @NonNull
              @Override
              public MyViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
  
                  View v1=LayoutInflater.from(getApplicationContext()).inflate(R.layout.single_cards_layout, parent,false);
                  return new MyViewHolder(v1);
              }
          };
  
          adapterForHindiJokes.startListening();
          adapterForHindiJokes.notifyDataSetChanged();
          recyclerViewForHindiJokes.setAdapter(adapterForHindiJokes);
      }
  }
  
      
  </code></pre>