Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change style depending on orientation

is it possible to define a style for portrait orientation and another for landscape so when the device is rotated the change is automatic, or it has to be done programmatically ?

Thanks

like image 338
xain Avatar asked Nov 30 '25 15:11

xain


1 Answers

in your /res folder, make a new folder called layout-land and put your main.xml in there. it will switch to that layout for landscape.

like image 85
mitch Avatar answered Dec 03 '25 04:12

mitch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!