Skip to content
Advertisement

Main Adapter Cannot be Applied to Java List

(list , this)<= this Line Creates Problem.

This is my Main Acitivty Code

JavaScript

Main Adapter Code

JavaScript

This one is Main Model

JavaScript

Advertisement

Answer

Here, In your code, you are missing a constructor as mentioned by @Sergey as well as you are passing the wrong context in onCreateViewHolder().You should pass parent.getContext();

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement