ActivityImeMultiEdtsOri.java 文件源码

java
阅读 30 收藏 0 点赞 0 评论 0

项目:SmartMath 作者:
protected void setFullScreenForSmallLandscape() {
    int nScreenSizeCategory = getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;
    int nScreenOrientation = getResources().getConfiguration().orientation;
    if (nScreenOrientation != Configuration.ORIENTATION_LANDSCAPE)  {
        if (nScreenSizeCategory == Configuration.SCREENLAYOUT_SIZE_SMALL)   {        // making it full screen in portrait mode if small screen
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                    WindowManager.LayoutParams.FLAG_FULLSCREEN);
        } else  {
            getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }
    } else  {
        if (nScreenSizeCategory == Configuration.SCREENLAYOUT_SIZE_SMALL
                || nScreenSizeCategory == Configuration.SCREENLAYOUT_SIZE_NORMAL)   {        // making it full screen in landscape mode if small or normal screen
            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                    WindowManager.LayoutParams.FLAG_FULLSCREEN);
        } else  {
            getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
        }
    }

}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号