Configuration cf = mContext.getResources().getConfiguration();
ori = cf.orientation;
if (ori == cf.ORIENTATION_LANDSCAPE)
else if (ori == cf.ORIENTATION_PORTRAIT)
activity横竖屏获取以及判断
最新推荐文章于 2022-10-11 15:08:26 发布
Configuration cf = mContext.getResources().getConfiguration();
ori = cf.orientation;
if (ori == cf.ORIENTATION_LANDSCAPE)
else if (ori == cf.ORIENTATION_PORTRAIT)