【问题标题】:How to fix the orientation of the page to Landscape in Application Craft?如何在 Application Craft 中将页面的方向固定为横向?
【发布时间】:2014-01-16 06:26:17
【问题描述】:

我有一个 adobe 表单,我需要将它合并到我在应用程序中创建的移动应用程序中,但由于表单有点宽,在 Landscape 中打开它可以解决我的目的。这就是为什么我需要将页面固定为横向,而其他页面将根据手机移动而旋转。

我唯一得到的是有一个电话间隙属性,但它设置了整个应用程序的方向,而不是页面。那么有没有什么办法呢?

【问题讨论】:

    标签: android ios mobile orientation landscape


    【解决方案1】:

    在清单中,为所有活动设置此项:

    <activity android:name=".YourActivity"
        android:configChanges="orientation"
        android:screenOrientation="landscape"/>
    

    让我解释一下:

    • 通过android:configChanges="orientation",您告诉 Android 您将对方向的更改负责。
    • android:screenOrientation="landscape"你设置了默认方向模式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-23
      • 1970-01-01
      • 2018-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多