//螢幕未指定 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); //螢幕橫向 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); //螢幕直向 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);