-
I have an application that displays a number of thumbnail photos on a photo sharing site. When the user taps a card, I show a larger version of the image and other data such as comments. Any of the information on this page can be selected then spawn a new detail view for the selected information. I envision this being many layers deep. I'm currently supporting this by
The problem comes in when you want to get back to a previous view or the main card view. Putting the card view back as the content of the window seems hacky and prone to a spaghetti mess. I'm thinking the mobile application paradigm of placing each view on a stack would work well here. The displayed view is the one at the top of the stack and "going back" means simply popping the current view off the stack. I could implement this, but I don't want to reinvent the wheel. Is there a more straightforward way to implement this type of flow in an application? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
There is no "standard"/builtin way to do this. What you describe will work, and there are a few apps out there, including mine, that have built something similar. |
Beta Was this translation helpful? Give feedback.
-
I would use the |
Beta Was this translation helpful? Give feedback.
-
The conundrum is that I'm not grokking the opacity and sizing of a new overlay. Using this code
I see that when a new overlay is added, it is not sized to fit the window. Additionally, see the label in the upper left; that shows that the new overlay is not fully opaque. What might I be missing? |
Beta Was this translation helpful? Give feedback.
-
It does seem there may be a bug where the overlay does not resize your content initially - not sure how that could be true maybe we accidentally worked around that in other usage. The opacity is absolutely correct - there is no solid colour applied between layers unless you add it - that is by design. |
Beta Was this translation helpful? Give feedback.
There is no "standard"/builtin way to do this. What you describe will work, and there are a few apps out there, including mine, that have built something similar.