动态更改屏幕方向的简单例子(LANDSCAPE与PORTRAIT)
//如果是竖排,则改为横排 if(getRequestedOrientation() == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); }