Hi,
here's my scenario: I have an activity with a dynamically generated menu (loaded from a webpage, based on what the viewer has access to).
When the phone is in portrait mode, nothing else fits besides the menu, so I have the menu, and clicking the buttons loads a new layout and starts a new activity for the given menu item. Pressing the back button goes back to the menu.
So far so good.
Here's what I would like: when the phone is in landscape mode, the menu items are on the left, and there is a lot of space besides the menu on the right. I was thinking of loading the new activity here. For example on a new panel. This would mean there are two activities visible and running at the same time: the menu itself, and the menu item. Is this possible?
I could achieve this by putting all the code in one activity, and just use different layouts, but that would make this one activity HUGE, and I would rather work with smaller activities if possible.
Thanks,
Ati
here's my scenario: I have an activity with a dynamically generated menu (loaded from a webpage, based on what the viewer has access to).
When the phone is in portrait mode, nothing else fits besides the menu, so I have the menu, and clicking the buttons loads a new layout and starts a new activity for the given menu item. Pressing the back button goes back to the menu.
So far so good.
Here's what I would like: when the phone is in landscape mode, the menu items are on the left, and there is a lot of space besides the menu on the right. I was thinking of loading the new activity here. For example on a new panel. This would mean there are two activities visible and running at the same time: the menu itself, and the menu item. Is this possible?
I could achieve this by putting all the code in one activity, and just use different layouts, but that would make this one activity HUGE, and I would rather work with smaller activities if possible.
Thanks,
Ati