hi, i have a question regarding rotation.
I am looking into using:
android:configChanges="orientation|keyboardHidden"
in my manifest file for an activity in my application. that of course
is accompanied with --
@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
setContentView(R.layout.myContentView);
}
I am doing this for a layout that has a landscape version of that
layout as well (i.e. I have a myContentView.xml in layout-land
directory). The issue is that when I do this, sometimes it appears as
though it doesn't render properly when going to landscape mode. I
have two edit boxes on that page that sometimes don't appear. Usually
it works, but sometimes they just disappear (or are off screen?).
Anyway, I can't figure out why they don't get rendered. Any ideas on
what i need to be doing here to make them render consistently?
My follow up question is why shouldn't I just do this for every
activity (assuming it worked :-)? Then I could avoid much of the
complexity surrounding activity lifecycle (I saw some issues regarding
menus, but it seems like that could be overcome).
tia.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe, reply using "remove me" as the subject.