Orientation and variants

Drago Bratko

Active Member
Licensed User
Longtime User
I guess this would be quite a begginer question, but somehow I can't get trough.

What I'm trying to do is simple UI which would work in portraite and landscape mode.

How I did it ...I have create two layout variants in designer ... one for 480x800x1, and another one for 800x480x1 ... and on each of them I have rearange elements.
In app, on Activity_Create, I just do activity.LoadLayout ... without referencing to variant (as I understood that it would select layout which fit's best).

But it is not working properly ... it select only one layout (first one which I have create) no mather which orientation phone is.

What am I doing wrong ?
 

rgately

Member
Licensed User
Longtime User
Has this issue been resolved? Because I'm having the same problem and need a solution.

I created a BAL file with 2 variants (480x800x1 and 800x480x1). I expected Android to show the 800x480 variant whenever a device is in landscape mode - but that's not what happens. Instead, the 480x800 variant is rotated and shown.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…