https://kotlinlang.org logo
Title
a

Ayden

06/08/2018, 4:08 PM
@Luke if that's the case, should I change it?
l

Luke

06/08/2018, 4:08 PM
Well I'm guessing that's what you want. Right now you are passing a single element to your adapter
a

Ayden

06/08/2018, 4:27 PM
Ya. So I no need to indicate the position?
Unless i have two elements?
l

Luke

06/08/2018, 4:29 PM
Will your RecyclerView have more than one element?
if yes, then the parameter of the constructor should be a collection. If no, then you don't need
[position]
a

Ayden

06/08/2018, 4:34 PM
Yes. My RecycleView will have two elements.
One is the title.
One is the image button.
l

Luke

06/08/2018, 4:37 PM
Do you really need a RecyclerView? Couldn't you just put the TextView and ImageView where the RecyclerView is?
a

Ayden

06/08/2018, 4:44 PM
It's going to be a list.