A
A
artem2021-03-22 20:50:42
Android
artem, 2021-03-22 20:50:42

Do I need a generic Adapter for RecyclerView?

I would like to know how often commercial projects use RecyclerView and a universal Adapter for it. Maybe everyone needs their own, so as not to impair readability? I have never encountered the need to create multiple RecyclerViews, but now I need it. I think that creating several classes for the adapter is a collective farm, what do you say?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-03-23
@arteqrt

There is such an AdapterDelegates . I recommend using it. There will be a universal adapter, and the ability to reuse elements on different screens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question