How to work with the landscape in TabHost?

My question is how to make an Activity or TableLayout in a TabHost layout?

I mean. How to do something like that?

enter image description here

My situation is the same. Android: activity of a child in activity on the Portrait tab

Thanks,,

+4
source share
1 answer

To my knowledge, all layouts can be automatically converted to a changed orientation mode. To control the orientation mode, use the code below.

Apply below code in manifest files for each action for each tab.

 android:configChanges="orientation|keyboardHidden" 

Then apply below code to each code of each action.

 public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); if(newConfig.orientation==Configuration.ORIENTATION_LANDSCAPE) //Toast.makeText(getApplicationContext(), "no", Toast.LENGTH_SHORT).show(); { } else { } } 
+2
source

All Articles