You need to make an application under Android with a catalog of products, and their description. There are about 100 products in the catalog. And everyone needs their own description.

To create for each markup (xml) and Activity - I think not the best option.

Closed due to the fact that the essence of the issue is incomprehensible by the participants of Kromster , HamSter , Alexander Petrov , post_zeew , cheops 23 Oct '16 at 15:52 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Activation (and therefore markup) will need only two - a list and a detailed view. Having received any identifier when you click on the list, you transfer it to the second activation, where data is extracted by this identifier (for example, from the database). The resulting data is then displayed in the second activation. In Android Studio there is a ready-made template Master Detail Flow, which implements the basic logic of such a case. - pavlofff

2 answers 2

2 activites: a list of products and product details. By clicking on the list item in the second activation, a serialized product object or id, or something else flies through the intent, depending on where you store all this.

    I can advise a book in which this situation is described in great detail and how to make such an application. The book is called: "Android Programming: The Big Nerd Ranch Guide." There is already a second edition in Russian. Find there an example of creating the Criminal Intent application (the largest in the book) and there will be all the answers to your questions. In addition, there is still a lot of useful things.