출처: http://goo.gl/xEDaWt
AndroidMenifest.xml 에서 <activity> 에 android:screenOrientation="portrait" 을 입력합니다. (가로모드의 경우 landscape입력
아래는 코드상에서.. 사용하는 방법
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);//세로
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSPACE);//가로
'study > JAVA' 카테고리의 다른 글
TCP/IP 예제 (android) (0) | 2015.04.02 |
---|---|
버튼 클릭 이벤트 (android) (0) | 2015.04.02 |
퍼미션 정리 (android) (0) | 2015.04.02 |
intent 예시 (android) (0) | 2015.04.02 |
자바의 기본적인 형변환 (0) | 2015.03.31 |