Hello,
Just wondering how to change the Page Layout to another Layout based on the screen rotate..
I know how to display my Layout:
However if the user has the device in Portrait mode I want to display a layout called 'Portrait': Activity.LoadLayout("Portrait")
But if the user rotates the device to landscape I want to display a different layout called 'Landscape': Activity.LoadLayout("Landscape")
Is there such way of doing this. (I know about the Designer Scripts but I want to display a different Layout all together)
I am looking for a place to detect if the device has been rotated and if so what way.
Any ideas?
Just wondering how to change the Page Layout to another Layout based on the screen rotate..
I know how to display my Layout:
B4X:
Activity.LoadLayout("MyLayout1")
However if the user has the device in Portrait mode I want to display a layout called 'Portrait': Activity.LoadLayout("Portrait")
But if the user rotates the device to landscape I want to display a different layout called 'Landscape': Activity.LoadLayout("Landscape")
Is there such way of doing this. (I know about the Designer Scripts but I want to display a different Layout all together)
I am looking for a place to detect if the device has been rotated and if so what way.
Any ideas?