Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以为纵向定义一种样式,为横向定义另一种样式,因此当设备旋转时,更改是自动的,还是必须以编程方式完成?
谢谢
在您的/res文件夹中,创建一个名为的新文件夹layout-land并将您的文件夹放入main.xml其中。它将切换到横向布局。
/res
layout-land
main.xml