gpt4 book ai didi

android - 如何禁用旋转到横向模式?

转载 作者:IT王子 更新时间:2023-10-28 23:33:47 25 4
gpt4 key购买 nike

我试过 this .在 list 文件中找不到 configChanges。无论如何,如何禁用屏幕旋转(横向模式)?

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.joericharduz.akita"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.joericharduz.akita.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>

最佳答案

正如kalyanpvs所说,configChangesactivity下:

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name="com.neundorfer.microraphandheld.v1.ParentActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">

关于android - 如何禁用旋转到横向模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18189705/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com