2014년 3월 13일 목요일

[ANDROID CODE / 안드로이드] 가로 세로 화면 고정

어플을 만들다 보면 가로와 세로 고정을 필요로 할때가 있다.

다음과 같이 지정해 주면 가로 세로의 회전을 고정 시킬 수 있다.

세로

<activity android:name=".xxxxxx"
             
             android:label="@string/app_name"
             
             android:screenOrientation="portrait" >

가로

<activity android:name=".xxxxxx"
             
             android:label="@string/app_name"
             
             android:screenOrientation="landscape" >

쉽다~~~

댓글 없음:

댓글 쓰기