Ayden
07/20/2018, 6:58 AMRecyclerView.Adapter<>()
.
I am trying to pass the List
size to the getItemCount()
override fun getItemCount() = vibes.vibeList?.size
But there is an error when I using nullable
variable because the return type is Int?
Return type of 'getItemCount' is not a subtype of the return type of the overridden member 'public abstract fun getItemCount(): Int defined in android.support.v7.widget.RecyclerView.Adapter'
May I know how to get rid of this issue?