I agree with b4x-de.
I would do it with a ScrollView in 'Layout' and in 'longlayout' a Panel with all the views on it, with the standard variant not a new one, but its height is of course higher than the screen.
And the code:
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private scvMainLayout As ScrollView
Private pnlMain As B4XView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
'load the layout onto the internal Panel of the ScrollView
scvMainLayout.Panel.LoadLayout("longlayout")
'set the ScrollView's internal Panel height to the layout panel height
scvMainLayout.Panel.Height = pnlMain.Height
End Sub
This works in both orientations.
Attached the test project.