{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/671","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/671/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/671/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/671","id":107424032,"number":671,"title":"Image URL in PrimaryDrawerItem","user":{"login":"bkawakami","id":1881935,"avatar_url":"https://avatars.githubusercontent.com/u/1881935?v=3","gravatar_id":"","url":"https://api.github.com/users/bkawakami","html_url":"https://github.com/bkawakami","followers_url":"https://api.github.com/users/bkawakami/followers","following_url":"https://api.github.com/users/bkawakami/following{/other_user}","gists_url":"https://api.github.com/users/bkawakami/gists{/gist_id}","starred_url":"https://api.github.com/users/bkawakami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkawakami/subscriptions","organizations_url":"https://api.github.com/users/bkawakami/orgs","repos_url":"https://api.github.com/users/bkawakami/repos","events_url":"https://api.github.com/users/bkawakami/events{/privacy}","received_events_url":"https://api.github.com/users/bkawakami/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","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":2,"created_at":"2015-09-20T23:24:52Z","updated_at":"2015-10-16T04:59:04Z","closed_at":"2015-09-21T18:27:37Z","body":"I would like my menu icon was dynamic, coming from a url ... I tried that but it did not work :(\r\n\r\n```kotlin\r\nvar image = DrawerImageLoader.init(object : DrawerImageLoader.IDrawerImageLoader {\r\n                override fun set(imageView: ImageView?, p1: Uri?, p2: Drawable?) {\r\n                    Picasso.with(imageView?.getContext()).load(\"http://image.com/img.png\").into(imageView);\r\n                }\r\n\r\n                override fun cancel(imageView: ImageView?) {\r\n                    Picasso.with(imageView?.getContext()).cancelRequest(imageView);\r\n                }\r\n\r\n                override fun placeholder(ctx: Context?): Drawable? {\r\n                    return null\r\n                }\r\n\r\n            }).getImageLoader();\r\n\r\n            listItens.add(PrimaryDrawerItem().withName(\"Try\").withIcon(image.placeholder(ctx)))\r\n```\r\n\r\nObs: This language is Kotlin :P"},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/148606232","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/671#issuecomment-148606232","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/671","id":148606232,"user":{"login":"schaal","id":1056362,"avatar_url":"https://avatars.githubusercontent.com/u/1056362?v=3","gravatar_id":"","url":"https://api.github.com/users/schaal","html_url":"https://github.com/schaal","followers_url":"https://api.github.com/users/schaal/followers","following_url":"https://api.github.com/users/schaal/following{/other_user}","gists_url":"https://api.github.com/users/schaal/gists{/gist_id}","starred_url":"https://api.github.com/users/schaal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schaal/subscriptions","organizations_url":"https://api.github.com/users/schaal/orgs","repos_url":"https://api.github.com/users/schaal/repos","events_url":"https://api.github.com/users/schaal/events{/privacy}","received_events_url":"https://api.github.com/users/schaal/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T04:59:04Z","updated_at":"2015-10-16T04:59:04Z","body":"Could you reconsider adding support for this in PrimaryDrawerItems? It's e.g. not possible to use the custom DrawerItems in a MiniDrawer (without also subclassing MiniDrawer and MiniDrawerItem)"}}