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)
source share