안드로이드 스튜디오 화면 고정
첫번째 방법 엑티비티 소스에 골라서 추가
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); //강제 가로
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); //강제 세로
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); //센서대로
두번째 방법
androidmanifest.xml 수정 방법
android:screenOrientation="portrait"
android:screenOrientation="landscape"
댓글 없음:
댓글 쓰기