In Designer, I was building 2 Layout Variants for one Layout file. I created a variant for portrait mode and another for landscape mode.
I was pleasantly surprised to see that the variants automatically changed whenever the orientation changed. In other words, when the device was rotated to Landscape orientation, the Landscape variant was automatically shown and the Portrait variant was shown when the device was rotated to Portrait orientation.
I didn't write any code to do this and am happy that it "just works" but I would appreciate it if someone could point me to where this action is specifically talked about so that I can better understand what's happening. Admittedly, I have a lot yet to learn.
Thanks!
I was pleasantly surprised to see that the variants automatically changed whenever the orientation changed. In other words, when the device was rotated to Landscape orientation, the Landscape variant was automatically shown and the Portrait variant was shown when the device was rotated to Portrait orientation.
I didn't write any code to do this and am happy that it "just works" but I would appreciate it if someone could point me to where this action is specifically talked about so that I can better understand what's happening. Admittedly, I have a lot yet to learn.
Thanks!