title: Picasso: load images to widget listview
body: <p>I'm implementing widget with listview based on this tutorial: <a href="http://laaptu.wordpress.com/2013/07/24/populate-appwidget-listview-with-remote-datadata-from-web/">http://laaptu.wordpress.com/2013/07/24/populate-appwidget-listview-with-remote-datadata-from-web/</a> (source code: <a href="https://github.com/laaptu/appwidget-listview/tree/appwidget-listview2/">https://github.com/laaptu/appwidget-listview/tree/appwidget-listview2/</a>).</p>
  
  <p>ListView item contains text &amp; image, for image loading I use Picasso.</p>
  
  <p>getViewAt implementation: </p>
  
  <pre><code>public RemoteViews getViewAt(int position) {
      final RemoteViews remoteView = new RemoteViews(context.getPackageName(), R.layout.listview_item);
      ListItem listItem = listItemList.get(position);
      remoteView.setTextViewText(R.id.headline, listItem.headline);
      final String imageUrl = listItem.image;
      handler.post(new Runnable() {
          @Override
          public void run() {
              if (!Utils.isEmpty(imageUrl)) {
                  picasso.load(imageUrl)
                          .placeholder(R.drawable.empty_photo)
                          .into(remoteView, R.id.picture, new int[] { appWidgetId });
              }
          }
      });
  
      return remoteView;
  }
  </code></pre>
  
  <p>When the image loaded, it breaks layout. </p>
  
  <p>What can be a possible problem? Or what am I doing wrong? </p>
  
  <p>Without image loading: </p>
  
  <p><img src="https://dl.dropboxusercontent.com/u/30957596/screenshot-01.png" alt="screenshot"></p>
  
  <p>How it looks after image is loaded: </p>
  
  <p><img src="https://dl.dropboxusercontent.com/u/30957596/screenshot-02.png" alt="screenshot"></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>The same happens if I just add a few nested remote views (all inflated from one layout)</p>
  
  <p><strong>UPDATE2:</strong></p>
  
  <p>Reported an issue: <a href="https://github.com/square/picasso/issues/587">https://github.com/square/picasso/issues/587</a></p>