Skip to content Skip to sidebar Skip to footer

Retrofit Android Json Parsing With Recyclerview

I recently learnt a bit about json parsing with retrofit2. I tried implementing on my own but no output is shown and no errors either in the log cat. What could be wrong? Take a lo

Solution 1:

You have a mistake in

@Override
publicintgetItemCount() {
    moviesList = new ArrayList<>();
    return moviesList.size();
}

You are creating new list , which size is 0, so your adapter always thinks there are no elememnts

Just try removing moviesList = new ArrayList<>();

Post a Comment for "Retrofit Android Json Parsing With Recyclerview"