keyboard - Android Tabhost, switching orientation reload is slow -
i have app in portrait mode, screens should have landscape mode phones physical keyboards.
i using tabhost , noticed when allow forced orientation change, reloads every tab , kind of slow.
is there way allow forced orientation change (such when hard keyboard popped out) , reload view in landscape mode? want without lag of reloading of activities. tabhost cycle through every activity on orientation change. know has redrawing "alive" activities on orientation change tabhost magnifies redrawing.
the activities require optional landscape mode need run within tabview.
insight appreciated
you prevent activity being destroyed handling orientation change yourself.
edit activities manifest:
<activity android:name=".myactivity" android:screenorientation="portrait" android:configchanges="orientation|keyboardhidden" />
and override in activities:
@override public void onconfigurationchanged(configuration newconfig) { //ignore orientation change super.onconfigurationchanged(newconfig); }
but have know restarting used load special resources each orientation might have strange effect if don't handle change. there reasons reload.
Comments
Post a Comment