Return Type Of Oncreateviewholder Is Not A Subtype Of The

[Solved] Return Type Of Oncreateviewholder Is Not A Subtype Of The | Whatever - Code Explorer | yomemimo.com
Question : Return type of 'onCreateViewHolder' is not a subtype of the return type of the overridden member 'public abstract fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ActivityAdapter.ViewHolder defined in androidx.recyclerview.widget.RecyclerView.Ada

Answered by : homely-hamster-6z03x448kycy

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { val binding = ActivityItemBinding.inflate(LayoutInflater.from(parent.context), parent, false) return ViewHolder(binding)
}

Source : https://chat.openai.com/?model=text-davinci-002-render-sha | Last Update : Fri, 14 Jul 23

Answers related to return type of oncreateviewholder is not a subtype of the return type of the overridden member public abstract fun oncreateviewholderparent viewgroup viewtype int activityadapter viewholder defined in androidx recyclerview widget recyclerview ada

Code Explorer Popular Question For Whatever