Friday, 17 May 2019

How should a draggable fragment whose job it is to display content of an object be setup?

I have an object A which contains a lot of data. It has a counter, a title, a color and a list of other objects. That content is supposed to be displayed in a fragment F.

I want to be able to initiate multiple instances of F at the same time (my app is designed for tablets, so I have more space then on phones).

A is intended to be draggable by the user.

What's the best way for me to structure my code? Should each fragment have it's own ViewModel?



from How should a draggable fragment whose job it is to display content of an object be setup?

No comments:

Post a Comment