In AndroidManifest: Expecting android:screenOrientation=“unspecified”

前端 未结 11 886
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 04:59

Android Studio 3.6.

I want my app to be always in portrait mode. So in my AndroidMainfest.xml:



        
11条回答
  •  名媛妹妹
    2021-02-02 05:46

    In your manifest tag (just under xmlns:android="http://schemas.android.com/apk/res/android"), put

    xmlns:tools="http://schemas.android.com/tools"
    

    Then inside the application tag, put

    tools:ignore="LockedOrientationActivity"
    

提交回复
热议问题