M
M
MaxFilatov2020-05-21 07:37:24
Android
MaxFilatov, 2020-05-21 07:37:24

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.5ec605784936e911486722.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2020-05-21
@zagayevskiy

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 question

Ask a Question

731 491 924 answers to any question