Hi guys. I have an issue about `RecyclerView.Adap...
# android
a
Hi guys. I have an issue about
RecyclerView.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?