AndroidManifest.xml 파일을 text editor로 열면,
Activity의 가로 세로(화면 회전)를 지정하는 속성이 있습니다.
screenOrientation 부분을 아래와 같이 지정하시면 됩니다.
//세로모드로 고정할 경우
<activity android:name=”.newcreation”
android:label=”@string/app_name”
android:screenOrientation=”portrait”>
//가로모드로 고정할 경우
<activity android:name=”.newcreation”
android:label=”@string/app_name”
android:screenOrientation=”landscape”>
속성을 이용한 방법입니다.
댓글을 남겨주세요
로그인 후 댓글을 작성할 수 있습니다.