My question is how to landscape Activity
or TableLayout
in the TabHost
Layout?
I mean How to do something like this?
My Situation is the same this question Android: Landscape Child Activity in a Portrait Tab Activity
Thanks,,,
My question is how to landscape Activity
or TableLayout
in the TabHost
Layout?
I mean How to do something like this?
My Situation is the same this question Android: Landscape Child Activity in a Portrait Tab Activity
Thanks,,,
As per my knowledge, all the layouts can automatically converts themselves in changed orientation mode. Please use below code to handle orientation mode.
Apply below code in menifest files for each activity for each tab.
android:configChanges="orientation|keyboardHidden"
Then apply below code to each code of each activity.
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
if(newConfig.orientation==Configuration.ORIENTATION_LANDSCAPE)
//Toast.makeText(getApplicationContext(), "no", Toast.LENGTH_SHORT).show();
{
}
else
{
}
}