(Solved) Change Adapter from other Class (null errors)


#21

It’s easier because there is a lot more tutorials on how to do it in java. Trying to learn both at the same time is harder than focusing in one thing, don’t you agree?


#22

I’m glad you found a solution. :slight_smile:


#23

Hello everyone,
I also came across similar problem and came to an empirical observation that any method of adapter (class that extends RecyclerView.Adapter) cannot be accessed outside the class (Not sure why this is happening) and hence I too need to pass the data in the constructor itself.
Can someone throw any light on this?