I have an image viewer app that handles very large images with significant caching. When a user rotates the device it would cause a hiccup if the app fully restarts.
If I disable the orientation changes then device rotations are seamless, but I have a sidebar that is oriented differently in landscape and portrait. With orientation changes disabled the sidebar will stay in it's previous state eating up massive chunks of real estate.
Is there a way I could allow the layout aspects to update on a rotation without fully restarting the activity?
EDIT (More Info)
I'm adding more info to make my original question more clear so I can answer it. The layout is as such:
___ _
| | |
| V |S| Landscape
|___|_|
___
| |
| V |
|___| Portrait
|_S_|
V = Viewer S = Sidebar
The sidebar is the same fragment, however it uses a different layout based on the orientation. My original attempt was a complicated multi-layout setup. This worked fine when I allowed the activity to restart on orientation changes. However since I don't want to reissue all the heavy lifting (or add instance saving overhead) I needed to find a way to adjust the layout on orientation changes without a full restart.