최근 Android Studio를 3.6으로 버전 업하면서 기존에 작업한 소스의 AndroidManifest.xml의 android:screenOrientation="portrait" 설정에서 빨간줄이 생겼다.(물론 빌드배포에선 전혀 문제가 나지 않았다.)
내용은 아래 스크린샷과 같다. 요약하면, 현재 지정한 'portrait' 속성 대신에 'unspecified'나 'fullSensor' 사용을 권고하는 내용이였다.
해결 방법은 간단하다. ignore 속성에 "LockedOrientationActivity" 를 추가하면 된다.
tools:ignore="LockedOrientationActivity"
참고링크:
In AndroidManifest: Expecting android:screenOrientation="unspecified"
Android Studio 3.6. I want my app to be always in portrait mode. So in my AndroidMainfest.xml: ...
stackoverflow.com
https://developer.android.com/topic/arc/window-management
창 관리 | Android 개발자 | Android Developers
이 페이지에서는 Chrome OS의 창 관리자에 관해 설명합니다. Chrome OS의 창 관리자 Android 앱은 다음과 같은 카테고리로 그룹화됩니다. API 레벨 창 관리자 동작 Android 1.5(API 레벨 3) 이하 이러한 앱은 항상 전체 화면으로 표시됩니다. Android 1.6(API 레벨 6) ~ Android 6.0(API 레벨 23) 이러한 앱은 크기를 조절하기에 안전하지 않은 것으로 처리됩니다. 가능한 경우 이러한 앱은 기본적으로 스
developer.android.com
https://developer.android.com/guide/topics/manifest/activity-element#screen
<액티비티> | Android 개발자 | Android Developers
Declares an activity (an Activity subclass) that implements part of the application's visual user interface. All activities must be represented by {@code } elements in the manifest file. Any that are not declared there will not be seen by the system…
developer.android.com