{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1078","repository_url":"https://api.github.com/repos/mikepenz/MaterialDrawer","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1078/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1078/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1078/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/1078","id":139026824,"number":1078,"title":"How to use a custom layout as secondaryDrawerItem (Question)","user":{"login":"amineMpdam","id":10850787,"avatar_url":"https://avatars.githubusercontent.com/u/10850787?v=3","gravatar_id":"","url":"https://api.github.com/users/amineMpdam","html_url":"https://github.com/amineMpdam","followers_url":"https://api.github.com/users/amineMpdam/followers","following_url":"https://api.github.com/users/amineMpdam/following{/other_user}","gists_url":"https://api.github.com/users/amineMpdam/gists{/gist_id}","starred_url":"https://api.github.com/users/amineMpdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amineMpdam/subscriptions","organizations_url":"https://api.github.com/users/amineMpdam/orgs","repos_url":"https://api.github.com/users/amineMpdam/repos","events_url":"https://api.github.com/users/amineMpdam/events{/privacy}","received_events_url":"https://api.github.com/users/amineMpdam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-07T16:37:39Z","updated_at":"2016-03-07T17:49:53Z","closed_at":null,"body":"Well i'm trying to extend your SecondaryDrawerItem Class so tht i would inflate a custom layout as a drawer item\r\n\r\ni've tried looking around your source code and the sample app, but unfortunatly it was beyond my grasp i suppose.\r\n\r\nthank you in advance for your help "},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/193367621","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/1078#issuecomment-193367621","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1078","id":193367621,"user":{"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},"created_at":"2016-03-07T17:49:53Z","updated_at":"2016-03-07T17:49:53Z","body":"@amineMpdam so what is your issue?\r\n\r\nIf you create a new class which extends the `SecondaryDrawerItem` and overwrite the method which defines the layout, and the one which defines the type you should be fine.\r\nhttps://github.com/mikepenz/MaterialDrawer/blob/develop/library/src/main/java/com/mikepenz/materialdrawer/model/SecondaryDrawerItem.java#L55\r\n\r\n"}}