{"action":"created","issue":{"url":"https://api.github.com/repos/square/picasso/issues/587","labels_url":"https://api.github.com/repos/square/picasso/issues/587/labels{/name}","comments_url":"https://api.github.com/repos/square/picasso/issues/587/comments","events_url":"https://api.github.com/repos/square/picasso/issues/587/events","html_url":"https://github.com/square/picasso/issues/587","id":38004822,"number":587,"title":"Can't load images into widget's listview","user":{"login":"ab-helly","id":320930,"avatar_url":"https://avatars.githubusercontent.com/u/320930?v=3","gravatar_id":"","url":"https://api.github.com/users/ab-helly","html_url":"https://github.com/ab-helly","followers_url":"https://api.github.com/users/ab-helly/followers","following_url":"https://api.github.com/users/ab-helly/following{/other_user}","gists_url":"https://api.github.com/users/ab-helly/gists{/gist_id}","starred_url":"https://api.github.com/users/ab-helly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ab-helly/subscriptions","organizations_url":"https://api.github.com/users/ab-helly/orgs","repos_url":"https://api.github.com/users/ab-helly/repos","events_url":"https://api.github.com/users/ab-helly/events{/privacy}","received_events_url":"https://api.github.com/users/ab-helly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/square/picasso/milestones/2","html_url":"https://github.com/square/picasso/milestones/Picasso%20Next","labels_url":"https://api.github.com/repos/square/picasso/milestones/2/labels","id":408768,"number":2,"title":"Picasso Next","description":"","creator":{"login":"dnkoutso","id":310370,"avatar_url":"https://avatars.githubusercontent.com/u/310370?v=3","gravatar_id":"","url":"https://api.github.com/users/dnkoutso","html_url":"https://github.com/dnkoutso","followers_url":"https://api.github.com/users/dnkoutso/followers","following_url":"https://api.github.com/users/dnkoutso/following{/other_user}","gists_url":"https://api.github.com/users/dnkoutso/gists{/gist_id}","starred_url":"https://api.github.com/users/dnkoutso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnkoutso/subscriptions","organizations_url":"https://api.github.com/users/dnkoutso/orgs","repos_url":"https://api.github.com/users/dnkoutso/repos","events_url":"https://api.github.com/users/dnkoutso/events{/privacy}","received_events_url":"https://api.github.com/users/dnkoutso/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":36,"state":"open","created_at":"2013-08-22T20:19:40Z","updated_at":"2015-03-20T17:49:43Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2014-07-16T17:24:34Z","updated_at":"2015-05-05T15:54:02Z","closed_at":null,"body":"I can't load images into every item of widget's ListView, it just breaks widget layout.\r\nI use RemoteViewsFactory to handle listview population\r\n\r\ngetViewAt code: \r\n\r\n    public RemoteViews getViewAt(final int position) {\r\n        final RemoteViews remoteView = new RemoteViews(context.getPackageName(), R.layout.lockscreen_widget_list_item);\r\n        ListItem listItem = listItemList.get(position);\r\n        remoteView.setTextViewText(R.id.widget_listitem_headline, listItem.headline);\r\n        remoteView.setTextViewText(R.id.widget_listitem_author, listItem.author);\r\n        final String imageUrl = listItem.image;\r\n        handler.post(new Runnable() {\r\n            @Override\r\n            public void run() {\r\n                if (!Utils.isEmpty(imageUrl)) {\r\n                    picasso.load(imageUrl)\r\n                            .placeholder(R.drawable.empty_photo)\r\n                            .into(remoteView, R.id.widget_listitem_picture, new int[]{appWidgetId});\r\n                }\r\n            }\r\n        });\r\n        return remoteView;\r\n    }\r\n\r\nResult without images loading:\r\n![screenshot-01](https://cloud.githubusercontent.com/assets/320930/3602570/99078a02-0d0d-11e4-9f52-e9ea2ae0dbb6.png)\r\n\r\nAnd after they are loaded:\r\n![screenshot-02](https://cloud.githubusercontent.com/assets/320930/3602571/990edb54-0d0d-11e4-9d77-1387522ec996.png)\r\n\r\nPS: the same happens (but only sometimes) if I inflate and add to RemoteViews the same item layout in for-loop"},"comment":{"url":"https://api.github.com/repos/square/picasso/issues/comments/99122982","html_url":"https://github.com/square/picasso/issues/587#issuecomment-99122982","issue_url":"https://api.github.com/repos/square/picasso/issues/587","id":99122982,"user":{"login":"manuel-sejourne","id":1440791,"avatar_url":"https://avatars.githubusercontent.com/u/1440791?v=3","gravatar_id":"","url":"https://api.github.com/users/manuel-sejourne","html_url":"https://github.com/manuel-sejourne","followers_url":"https://api.github.com/users/manuel-sejourne/followers","following_url":"https://api.github.com/users/manuel-sejourne/following{/other_user}","gists_url":"https://api.github.com/users/manuel-sejourne/gists{/gist_id}","starred_url":"https://api.github.com/users/manuel-sejourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuel-sejourne/subscriptions","organizations_url":"https://api.github.com/users/manuel-sejourne/orgs","repos_url":"https://api.github.com/users/manuel-sejourne/repos","events_url":"https://api.github.com/users/manuel-sejourne/events{/privacy}","received_events_url":"https://api.github.com/users/manuel-sejourne/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T15:54:02Z","updated_at":"2015-05-05T15:54:02Z","body":"Any issue ?"}}