标签:
public boolean isScreenChange() { Configuration mConfiguration = this.getResources().getConfiguration(); //获取设置的配置信息 int ori = mConfiguration.orientation ; //获取屏幕方向 if(ori == mConfiguration.ORIENTATION_LANDSCAPE){ //横屏 return true; }else if(ori == mConfiguration.ORIENTATION_PORTRAIT){ //竖屏 return false; } return false; }
标签:
原文地址:http://www.cnblogs.com/xyida/p/4335131.html