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.
我试图在 Android Studio 中创建一个包含多个字段的表格,因此活动的常见垂直模式对我来说似乎没有用。
我只想将一个活动横向模式更改为“水平”,每当我从这个活动更改为另一个活动时,回到常规的“垂直”模式。
我试过在谷歌上搜索,但我发现的只是将整个应用程序更改为垂直或水平的教程,我不需要。
我该怎么做?
谢谢
您可以在 AndroidManifest.xml 中为每个活动单独设置此项。例如:
<activity android:name=".MyHorizontalActivity" android:label="@string/my_horiz_activity" android:screenOrientation="landscape" />