Greetings. I create my first client-server application, so I want to consult with more experienced developers.
The very essence of the question: I get a response from the server in json format, which can be of 2 types, for example, {"response": 0} and {"response": [{"count_wall": 20, item: [{"user_id": 12, "title": "title", "body": "description"}, {"user_id": ... }]}]} . And depending on the answer, I have to output either that there are no records, or in the form of a list. Those. there will be 2 layout files: 1. list list
What is better for this situation: the use of individual fragments or the implementation of the list? Each fragment or list item must have its own handler.

