title: Add image to item (spinner)
body: <p>Hi I am an amateur in android .I would like to add images to my spinner's item. Unfortunately, I dont know how to do it . 
  Below is my xml file and MainActivity.
  Thanks for reading.</p>
  
  <p><strong>XML FILE</strong></p>
  
  <pre><code>    &lt;resources&gt;
      &lt;string-array name="walutyarrajwoskie"&gt;
      &lt;item&gt;ALL&lt;/item&gt;
      &lt;item&gt;AMD&lt;/item&gt;
      &lt;item&gt;AZN&lt;/item&gt;
      &lt;item&gt;BYR&lt;/item&gt;
      &lt;item&gt;BAM&lt;/item&gt;
      &lt;item&gt;BGN&lt;/item&gt;
      &lt;/string-array&gt;
      &lt;/resources&gt;
  </code></pre>
  
  <p><strong>MAINACTIVITY</strong></p>
  
  <pre><code> @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
      editText_waluty= (EditText) findViewById(R.id.editText_waluty);
      spinner_from =(Spinner) findViewById(R.id.spinner_from);
      spinner_to =(Spinner) findViewById(R.id.spinner2_to);
      textview_to= (TextView) findViewById(R.id.textView2_to);
      button_konwertuj= (Button) findViewById(R.id.button_konwertuj);
  
  
  
  
  
  
      ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(this,
              R.array.**walutyarrajwoskie**, android.R.layout.simple_spinner_item);
  
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  
  
      spinner_from.setAdapter(adapter);
      spinner_to.setAdapter(adapter);
  </code></pre>