title: ViewHolder ImageView Android
body: <p>I've designed a Chord object that is made of two Strings and an ImageView.</p>
  
  <pre><code>public class Accordo {
  private String nome, note;
  private ImageView imagine;
  
  // all the get and set methods
  }
  </code></pre>
  
  <p>when I want to refer to it in my custom ViewHolder, more specifically when I <code>@override</code> the <code>onBindViewHolder()</code> method, I write:</p>
  
  <pre><code>holder.nome.setText(chord.getNome());
  holder.note.setText(chord.getNote());
  </code></pre>
  
  <p>for TextViews I can use the <code>setText()</code> method. But what is the equivalent for <code>ImageViews</code>?</p>
  
  <p><strong>EDIT</strong>
  I could use <code>setImageResource()</code> but it takes an int from a drawable.</p>
  
  <p>Since I need a recyclerView with a different Image for every row, I need something that I can setup later in another class and have something like:</p>
  
  <pre><code>private void prepareMovieData() {
          Movie movie = new Movie("Mad Max: Fury Road", "Action &amp; Adventure", "**LocallyStoredImage**");
          movieList.add(movie);
          ...
      }
  </code></pre>