Should I use two adapters to print out two different types of data from Cotlin to one recycler view? I ask for your help me ^^;

Asked 2 years ago, Updated 2 years ago, 66 views

Data A when button 1 is pressed Press button 2 to print out B data (data contents are similar) Should I use two adapters? Or can I use button 1 and button 2 together for one adapter? I keep getting errors no matter what I do 나서

recyclerview kotlin adapter

2022-09-20 21:31

1 Answers

You can make two adapters and use them.

You can also create and use each View Holder in one adapter.


2022-09-20 21:31

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.