三星平板电脑。以横向方式显示应用程序。应用程序的默认值

问题描述 投票:0回答:1

三星平板电脑为设备上的每个应用程序提供屏幕设置(设置/高级功能/实验室/横向显示应用程序)。默认情况下,此设置对于某些应用程序可能有所不同,通常是App DefaultApp宽高比(img1)。 使用应用程序纵横比,当设备处于横向模式(img2)时,应用程序保持纵向模式。我找不到任何关于这个设置值的依赖关系的描述。

(https://i.stack.imgur.com/nG7bf.jpg)

(https://i.stack.imgur.com/E4Atb.jpg)

也许有人知道,我需要在 AndroidManifest.xml、build.gradle 或 Activity 实现中更改什么才能接收 App Default 作为默认值?

android android-manifest orientation landscape galaxy-tab
1个回答
0
投票

我相信,大多数锁定方向的应用程序都是通过启动器活动中的 AndroidManifest.xml 使用相应

android:screenOrientation
标签下的属性
<activity>
来实现的。

参考:

https://developer.android.com/guide/topics/manifest/activity-element#:~:text=task%20aren%27t%20ressized.-,android%3AscreenOrientation,-%20orientation%20of

您提到的列表可以使用

ActivityInfo

类'字段
screenOrientation
来填充。

© www.soinside.com 2019 - 2024. All rights reserved.