Android recycler view not calling any function (Kotlin)
I have a simple new application with a recycler view that should display “songs” but at the moment it displays non.
Non of the functions on the adapter are being called, not even getItemCount.
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.
Adapter does not render elements in recyclerview, without errors in logs
Adapter does not render elements in recyclerview, and there are no errors in logcat.
I changed the background of the recyclerview and I know that it is displayed, but the elements that I add to it do not appear.Adapters written in the same way work on a different activity.