AndroidManifest.xml
<activity
android:name=".RotationActivity"
android:configChanges="screenSize|orientation"
android:screenOrientation="sensorLandscape"/>
RotationActivity.java
@Override
public void onConfigurationChanged(Configuration newConfig) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
super.onConfigurationChanged(newConfig);
}
'programmer > android' 카테고리의 다른 글
Adapter를 사용하는 View(ListView, GridView)에 Context menu 사용하기 (0) | 2013.07.25 |
---|---|
Content Uri and File path (0) | 2013.07.25 |
TextView marquee (0) | 2013.07.24 |
view dimension(width/height) check before view is displayed (0) | 2013.07.18 |
custom spinner (0) | 2013.07.18 |