How can I force my fragment to redraw the layout?
I am using fragments in combination with tabs to display some content. One
of those fragments displays data that gets updated with an async task.
Since I want to keep the content that was generated on configuration
change, I set android:configChanges="orientation" in my manifest file.
This works just fine for the fragment.However, now I have got another
problem: One of my other fragments uses a custom landscape layout. This
landscape layout is not set on configuration change. I guess it is because
I defined in my manifest to handle the configuration change.
Now, how can I force my fragment that uses the custom landscape layout to
use the landscape layout on configuration change? What do I have to put in
my onConfigurationChanged() method?
No comments:
Post a Comment