Monday, 19 August 2013

Don't reload Activity orientation change but still reload Fragments

Don't reload Activity orientation change but still reload Fragments

Im using a MainActivity with a few Fragments.
In the Activity I connect to a server.
I used: android:configChanges="orientation|screenSize" in my Manifest.
So that the Activity keeps the connection on orientation change.
But now I cant use different layout for port/land (Fragments).
Is there a way to force the Fragments to reload on change without the
Activity reloading?

No comments:

Post a Comment