Answer the question
In order to leave comments, you need to log in
How to properly interact with the adapter?
I am trying to hide fields on button click. If I do this in the adapter (click on the itemView), then everything works as it should. If I try with the button, it doesn't work.
Answer the question
In order to leave comments, you need to log in
In general, in this case, it is correct to change the dataset, and notify the adapter about the change so that it rebinds the viewholder, otherwise it will turn out to be crap.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question