A
A
Alexander Sinitsyn2017-08-27 21:41:42
Android
Alexander Sinitsyn, 2017-08-27 21:41:42

How to use one list fragment to display great data?

Is it correct to use one list fragment to output different data? The data differs by filter conditions and views. Would it be correct to pass a ready-made adapter, callbacks and display settings when creating a list fragment?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mr_serg77, 2017-08-27
@mr_serg77

It seems that this is normal, but it’s worth passing some flag in the bundle (they say, what kind of data), and the fragment, based on the flag, should get everything from the model.

V
Vlad Kovalev, 2017-08-28
@zeekenru

Adapter delegates

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question