{"action":"opened","issue":{"url":"https://api.github.com/repos/NewbeeMaster/NBDiycode/issues/1","repository_url":"https://api.github.com/repos/NewbeeMaster/NBDiycode","labels_url":"https://api.github.com/repos/NewbeeMaster/NBDiycode/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NewbeeMaster/NBDiycode/issues/1/comments","events_url":"https://api.github.com/repos/NewbeeMaster/NBDiycode/issues/1/events","html_url":"https://github.com/NewbeeMaster/NBDiycode/issues/1","id":250803186,"number":1,"title":"引导页跳转主页 既非全屏到全屏bug处理","user":{"login":"luhaoaimama1","id":13213618,"avatar_url":"https://avatars1.githubusercontent.com/u/13213618?v=4","gravatar_id":"","url":"https://api.github.com/users/luhaoaimama1","html_url":"https://github.com/luhaoaimama1","followers_url":"https://api.github.com/users/luhaoaimama1/followers","following_url":"https://api.github.com/users/luhaoaimama1/following{/other_user}","gists_url":"https://api.github.com/users/luhaoaimama1/gists{/gist_id}","starred_url":"https://api.github.com/users/luhaoaimama1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luhaoaimama1/subscriptions","organizations_url":"https://api.github.com/users/luhaoaimama1/orgs","repos_url":"https://api.github.com/users/luhaoaimama1/repos","events_url":"https://api.github.com/users/luhaoaimama1/events{/privacy}","received_events_url":"https://api.github.com/users/luhaoaimama1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-17T01:14:08Z","updated_at":"2017-08-17T01:14:08Z","closed_at":null,"body":"1.但是在页面切换过程中，会出现先显示页面内容，然后由于状态栏的出现，整个界面下移一个状态栏高度的问题？\r\nhttp://blog.csdn.net/u013011318/article/details/48296869\r\n\r\n```\r\n  /*\r\n     * 在setContent之前调用\r\n     * Android 全屏界面切换到非全屏界面的问题\r\n     *http://blog.csdn.net/u013011318/article/details/48296869\r\n     */\r\n    protected void smoothSwitchScreen() {\r\n        // 5.0以上修复了此bug\r\n//        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {\r\n        ViewGroup rootView = ((ViewGroup) this.findViewById(android.R.id.content));\r\n        int resourceId = getResources().getIdentifier(\"status_bar_height\", \"dimen\", \"android\");\r\n        int statusBarHeight = getResources().getDimensionPixelSize(resourceId);\r\n        rootView.setPadding(0, statusBarHeight, 0, 0);\r\n        getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);\r\n        getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);\r\n//        }\r\n    }\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"luhaoaimama1"}}