2013-07-03 5 views
0

내 애플 만의 주요 활동하고 매니페스트에가 따라서 방향이 같은 거세한 숫양을 유지 여부를 사용자가 장치를 회전 회전을 허용하지 않도록 설정 한 페이지를 사용합니다. 하지만 사용자가 가로 방향으로 앱을 실행하면 태블릿에 표시됩니다. 앱이 기본 방향 (세로)을로드하지만 가로보기 대신 화면 절반 만 보입니다. 도움. 이것은 매니 페스트에서 내 활동의 일부입니다. 회전을 사용 중지하려면 nosensor를 사용합니다.태블릿 장치는

<activity 
     android:name="com.paul.xicon.MainActivity" 
     android:windowSoftInputMode="adjustPan" 
     android:label="@string/app_name" 
     android:screenOrientation="nosensor"> 

답변

0

어떻게 화면 회전을 사용 중지했는지 모르겠습니다. 하지만 이것은 매니 페스트의 액티비티 태그에서 잘 작동합니다.

+0

는 곳이를

android:screenOrientation="landscape" (disables the screen-rotation & restricts to landscape mode) or, android:screenOrientation="portrait" (disables the screen-rotation & restricts to portrait mode) 
배치합니까 ? 매니페스트 또는 레이아웃 XML에서? –

+0

안의 AndroidManifest.xml에 있음 – epiphany27