开发者

Change style depending on orientation

开发者 https://www.devze.com 2023-02-05 12:17 出处:网络
is it possible to define a style for portrait orienta开发者_如何转开发tion and another for landscape so when the device is rotated the change is automatic, or it has to be done programmatically ?

is it possible to define a style for portrait orienta开发者_如何转开发tion and another for landscape so when the device is rotated the change is automatic, or it has to be done programmatically ?

Thanks


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消