1 // 判断Android当前的屏幕是横屏还是竖屏。横竖屏判断 2 if (this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { 3 //竖屏 4 } else { 5 //横屏 6 }
1 // 判断Android当前的屏幕是横屏还是竖屏。横竖屏判断 2 if (this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { 3 //竖屏 4 } else { 5 //横屏 6 }