1.AndroidManifest.xml 클릭

2.좌측하단에 적용시킬 Activity 선택

3.Screen orientation 선택

Screen orientation의 속성

portrit 세로만 보기

landscape 가로만 보기

nosensor 화면전환 막음

sensor 화면전환 가능 (휴대폰의 화면전환 적용 X)

4.저장



또는 AndroidManifest.xml 코드에서 직접적으로
1
2
android:screenOrientation="portrait" //세로고정
android:screenOrientation="landscape" //가로고정
cs
을 추가하면 된다.


+ Recent posts