Relative Content

Tag Archive for androidkotlinandroid-recyclerviewandroid-adapter

Adapter not called when working with RecyclerView in Kotlin

I have a an Activity called ShoppingListActivity. The only thing it has in its layout is a fragment called ShoppingListFragment. That fragment get a listId as a parameter and should list all items within the list with id = listId in a RecyclerView and the name of that list. When the ShoppingListFragment gets called the name is displayed correctly but the recyclerview is never displayed.

Adapter not attached recyclerview

I am trying to make a storytelling application that lets you see other’s post, taken from a dummy API, but i just can’t get the recyclerview list to work, as it only ever give me error, saying the adapter is not attached. Here are the codes for MainActivity.