Hello,
I am trying make a GUI which looks nice on both orientations.
I created a layout "welcome_v" for vertical orientation and a layout "welcome_h" for horizontal.
I am switching between the two when I detect an orientation change, such as in Resume and Create methods, as following :
If Activity.Width > Activity.Height Then
Activity.LoadLayout("welcome_h")
Else
Activity.LoadLayout("welcome_v")
End If
It works fine so far.
I this a good practice ? Can you please recommend a better one ?
Thank you.
I am trying make a GUI which looks nice on both orientations.
I created a layout "welcome_v" for vertical orientation and a layout "welcome_h" for horizontal.
I am switching between the two when I detect an orientation change, such as in Resume and Create methods, as following :
If Activity.Width > Activity.Height Then
Activity.LoadLayout("welcome_h")
Else
Activity.LoadLayout("welcome_v")
End If
It works fine so far.
I this a good practice ? Can you please recommend a better one ?
Thank you.