0

My main problem is that the populateViewHolder method is never called. I checked this populateViewHolder method is excuting or not by Log. why not executing this populateViewHolder method ??

I added this dependenci

   compile 'com.firebaseui:firebase-ui-database:1.2.0'

Here is my code

Query conversationQuery = mConvDatabase.orderByChild("timestamp");
    FirebaseRecyclerAdapter<Conv, ConvViewHolder> firebaseConvAdapter = new FirebaseRecyclerAdapter<Conv, ConvViewHolder>(
            Conv.class,
            R.layout.users_single_layout,
            ConvViewHolder.class,
            conversationQuery
    ) {

        @Override
        protected void populateViewHolder(final ConvViewHolder convViewHolder, final Conv conv, int i) {
            Log.d("success","response");
Frank van Puffelen
  • 499,950
  • 69
  • 739
  • 734
Areyen
  • 13
  • 6
  • I'm not sure, but maybe upgrade the firebaseui to the latest version – Peter Haddad Apr 23 '18 at 15:41
  • You are using a very old version of `FirebaseRecyclerAdapter`. To solve your problem, **[this](https://stackoverflow.com/questions/49383687/how-can-i-retrieve-data-from-firebase-to-my-adapter/49384849)** is how you can retrieve data from a Firebase Realtime database and display it in a `RecyclerView` using `FirebaseRecyclerAdapter`. – Alex Mamo Apr 23 '18 at 19:13

0 Answers0