본문 바로가기

Programming/Android

android 가로, 세로 화면 전환 막기




mainfest파일내에 activity마다 하나씩 다 설정을 해주어야 합니다.

세로 유지만 하고 싶을경우
android:screenOrientation="portrait" 

가로 유지만 하고 싶을경우
android:screenOrientation="landscape"

Ex)
        <activity android:name="setting"
                    android:screenOrientation="portrait" />


안드로이드는 하면 할수록 더 많은걸 배우게 되는거 같다. ㅠ