In AndroidManifest: Expecting android:screenOrientation=“unspecified”

前端 未结 11 880
隐瞒了意图╮
隐瞒了意图╮ 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:40

    Add following line after android:screenOrientation="portrait"

    tools:ignore="LockedOrientationActivity"
    

    Then click Alt+Enter

    enter image description here

提交回复
热议问题