【问题标题】:Email composer show in landscape mode when restrict application in portrait mode (android +phonegap )在纵向模式下限制应用程序时,电子邮件编辑器以横向模式显示(android +phonegap)
【发布时间】:2013-08-24 03:43:54
【问题描述】:

我在 phonegap 中将我的应用程序限制为纵向模式。但是当我使用电子邮件编写器插件并打开电子邮件编写器时,它会以横向模式显示吗?为什么有任何方法可以仅以纵向模式显示电子邮件编辑器?

<activity
            android:name=".Activity.SplashScreenActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait">
            <intent-filter>
                <action
                    android:name="android.intent.action.MAIN" />
                <category
                    android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

【问题讨论】:

    标签: android plugins cordova


    【解决方案1】:

    实际上,您特别限制了一个 Activity 处于纵向模式,它只会应用您的 SplashScreenActivity。对于其他活动,它将保持为默认值。 如果你想要这个用于其他活动,你也必须写

                 android:screenOrientation="portrait"
    

    在所有活动中,

    试试这个

                android:screenOrientation="portrait"
                android:configChanges="orientation"
    

    【讨论】:

    • 这适用于 phonegap 吗?我没有使用本机应用程序。我使用的是 HTML%
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-26
    • 1970-01-01
    • 1970-01-01
    • 2017-01-17
    • 1970-01-01
    相关资源
    最近更新 更多