D
D
Danila Mesenko2018-03-20 19:02:12
Android
Danila Mesenko, 2018-03-20 19:02:12

How to add nested photo galleries?

I must say right away that I am completely new in Java, I am also self-taught in OOP, so I ask you to specify and at least chew on the answers a little.
Bottom line: I made a photo gallery using this example .
Here is my modified Main.java file . With the help of the volley library, it downloads the json file, takes the addresses of the pictures from it and builds a gallery from them. Clicking on an image opens it in full screen.
Attention to the question: how can I make two levels of nested galleries with minimal changes in the code? That is, when you click on the picture in Maine, a second-level gallery opens, in it - a third-level gallery, and there are already pictures in it.
Just in case, changes have already been made to json - String identifiers year and girlname (these are photos of girls from beauty contests, identifiers indicate the year of the contest and the girl's name).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question