Computer/Android(안드로이드)
[안드로이드] 화면 가로모드 or 세로모드 고정시키기
Lewis.yongmin
2015. 7. 17. 00:55
어플 실행시, 가로/세모로드를 고정시키고 싶다면,
AndroidManifest.xml 문서를 수정해야한다.
<activity>태그 사이에
android:screenOrientation="landscape"를 넣으면 가로,
android:screenOrientation="portrait"를 넣으면 세로,
android:screenOrientation="sensorLandscape"는 가로 & 180도 회전시 화면전환,
android:screenOrientation="sensorPortrait"는 세로 & 180도 회전시 화면전환.
</activity>
http://developer.android.com/guide/topics/manifest/activity-element.html#screen