{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/528","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/528/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/528/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/528","id":98550475,"number":528,"title":"How to hide account header","user":{"login":"macaronlover","id":12353505,"avatar_url":"https://avatars.githubusercontent.com/u/12353505?v=3","gravatar_id":"","url":"https://api.github.com/users/macaronlover","html_url":"https://github.com/macaronlover","followers_url":"https://api.github.com/users/macaronlover/followers","following_url":"https://api.github.com/users/macaronlover/following{/other_user}","gists_url":"https://api.github.com/users/macaronlover/gists{/gist_id}","starred_url":"https://api.github.com/users/macaronlover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macaronlover/subscriptions","organizations_url":"https://api.github.com/users/macaronlover/orgs","repos_url":"https://api.github.com/users/macaronlover/repos","events_url":"https://api.github.com/users/macaronlover/events{/privacy}","received_events_url":"https://api.github.com/users/macaronlover/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2015-08-01T17:07:43Z","updated_at":"2015-08-01T17:39:47Z","closed_at":null,"body":"How can I hide the account header? I've created the code below but I don't want the account header to be showing during runtime. The solution is 'headerResult.?' where the question mark is replaced by something but I don't know what.\r\n\r\n        headerResult = new AccountHeaderBuilder()\r\n                .withActivity(getActivity())\r\n                .withHeaderBackground(R.color.red)\r\n\r\n                .addProfiles(\r\n                        new ProfileDrawerItem().withName(\"Mike Penz\").withEmail(\"mikepenz@gmail.com\")\r\n                )\r\n                .build();\r\n\r\n        result = new DrawerBuilder()\r\n                .withActivity(getActivity())\r\n                .withAccountHeader(headerResult)\r\n                .withTranslucentStatusBar(false)\r\n                .withActionBarDrawerToggle(false)\r\n                .withSelectedItem(-1)\r\n                .addDrawerItems(\r\n                        new PrimaryDrawerItem().withName(R.string.greeting).withIdentifier(1).withCheckable(false)\r\n                )\r\n                .build();"},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/126939560","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/528#issuecomment-126939560","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/528","id":126939560,"user":{"login":"macaronlover","id":12353505,"avatar_url":"https://avatars.githubusercontent.com/u/12353505?v=3","gravatar_id":"","url":"https://api.github.com/users/macaronlover","html_url":"https://github.com/macaronlover","followers_url":"https://api.github.com/users/macaronlover/followers","following_url":"https://api.github.com/users/macaronlover/following{/other_user}","gists_url":"https://api.github.com/users/macaronlover/gists{/gist_id}","starred_url":"https://api.github.com/users/macaronlover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macaronlover/subscriptions","organizations_url":"https://api.github.com/users/macaronlover/orgs","repos_url":"https://api.github.com/users/macaronlover/repos","events_url":"https://api.github.com/users/macaronlover/events{/privacy}","received_events_url":"https://api.github.com/users/macaronlover/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T17:39:47Z","updated_at":"2015-08-01T17:39:47Z","body":"My tablet uses fragments from a master detail flow hence it is easier to have the code in a fragment."}}