{"action":"created","issue":{"url":"https://api.github.com/repos/splitwise/TokenAutoComplete/issues/182","repository_url":"https://api.github.com/repos/splitwise/TokenAutoComplete","labels_url":"https://api.github.com/repos/splitwise/TokenAutoComplete/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/splitwise/TokenAutoComplete/issues/182/comments","events_url":"https://api.github.com/repos/splitwise/TokenAutoComplete/issues/182/events","html_url":"https://github.com/splitwise/TokenAutoComplete/issues/182","id":120667301,"number":182,"title":"Cannot load image into the custom view using Picasso Library","user":{"login":"ssaxena01","id":12941378,"avatar_url":"https://avatars.githubusercontent.com/u/12941378?v=3","gravatar_id":"","url":"https://api.github.com/users/ssaxena01","html_url":"https://github.com/ssaxena01","followers_url":"https://api.github.com/users/ssaxena01/followers","following_url":"https://api.github.com/users/ssaxena01/following{/other_user}","gists_url":"https://api.github.com/users/ssaxena01/gists{/gist_id}","starred_url":"https://api.github.com/users/ssaxena01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssaxena01/subscriptions","organizations_url":"https://api.github.com/users/ssaxena01/orgs","repos_url":"https://api.github.com/users/ssaxena01/repos","events_url":"https://api.github.com/users/ssaxena01/events{/privacy}","received_events_url":"https://api.github.com/users/ssaxena01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-12-06T22:54:13Z","updated_at":"2016-09-15T08:02:38Z","closed_at":"2015-12-07T00:11:41Z","body":"I’d like to design the token with an image and text. The image has to be loaded via a url. Do you have an example on how to do that? I’m using Picasso library but that call never occurs. It’s called in the getViewForObject(). The placeholder drawable renders fine while the image from the url isn't rendering. Thanks.\r\n\r\nSample  code:\r\n    \r\n        @Override\r\n         protected View getViewForObject(User user) {\r\n              LayoutInflater l =      \r\n                 (LayoutInflater)getContext().getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\r\n                  RelativeLayout view = (RelativeLayout)l.inflate(R.layout.recipient_token, (ViewGroup)\r\n                DelayAutoCompleteTextView.this.getParent(), false);\r\n        TextView nameView = ((TextView)view.findViewById(R.id.token_name));\r\n        nameView.setText(user.getFullName());\r\n        ImageView tokenImageView = (ImageView)view.findViewById(R.id.token_image);\r\n        String url = user.getImageUrl();\r\n      \r\n        Picasso picasso = Picasso.with(context);\r\n        picasso.setLoggingEnabled(true);\r\n                picasso.load(url)\r\n                .fit().centerCrop()\r\n                .placeholder(R.drawable.default_avatar_image)\r\n                .transform(new RoundTransformation(100, 2, false, context))\r\n                .into(tokenImageView);\r\n        return view;\r\n}"},"comment":{"url":"https://api.github.com/repos/splitwise/TokenAutoComplete/issues/comments/247262998","html_url":"https://github.com/splitwise/TokenAutoComplete/issues/182#issuecomment-247262998","issue_url":"https://api.github.com/repos/splitwise/TokenAutoComplete/issues/182","id":247262998,"user":{"login":"Studentessa","id":10280462,"avatar_url":"https://avatars.githubusercontent.com/u/10280462?v=3","gravatar_id":"","url":"https://api.github.com/users/Studentessa","html_url":"https://github.com/Studentessa","followers_url":"https://api.github.com/users/Studentessa/followers","following_url":"https://api.github.com/users/Studentessa/following{/other_user}","gists_url":"https://api.github.com/users/Studentessa/gists{/gist_id}","starred_url":"https://api.github.com/users/Studentessa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Studentessa/subscriptions","organizations_url":"https://api.github.com/users/Studentessa/orgs","repos_url":"https://api.github.com/users/Studentessa/repos","events_url":"https://api.github.com/users/Studentessa/events{/privacy}","received_events_url":"https://api.github.com/users/Studentessa/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T08:02:38Z","updated_at":"2016-09-15T08:02:38Z","body":"Hello @ssaxena01 , it has been a while since you write this question, but I'm having the same issue know. I trying to  load an image from url but i have not success. I've tried both picasso and Universal Load Image libs  (In other parts of the application lib works fine). I think it have to do with background process.  \r\n\r\nthanks in advance"}}
{"actor":{"display_login":"Studentessa"}}