title: Strange behavior using custom ArrayAdapter for Spinner Dropdown (duplicating items after click) (Android)
body: <p>I wanna use differents layouts for a spinner dropdown: one for the normal view (text + image), and another for dropdown list (just text).</p>
  
  <p>So, at first, I tried the following:</p>
  
  <pre><code>Spinner spinner = (Spinner) findViewById(R.id.spinner);
  ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, R.layout.item_title, R.id.text, list);
  adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  spinner.setAdapter(adapter);
  </code></pre>
  
  <p>Propably because the first has an image, and the second is just a TextView, I couldn't use this (always throw an exception - NullPointerException)</p>
  
  <p>So, I created a custom ArrayAdapter for this, and it worked fine with the layouts, but another problem appeared: When I select an item, this item disappear from the dropdown list, and another item take its place.</p>
  
  <p>For example, this is the initial state:</p>
  
  <pre><code>|item 1|
  
  item 1
  item 2
  item 3
  item 4
  </code></pre>
  
  <p>Then, I wanna select item 4 (after select, the dropdown list hide):</p>
  
  <pre><code>|item 4|
  </code></pre>
  
  <p>And when I click again, to choose another item, it appears this way:</p>
  
  <pre><code>|item 4|
  
  item 1
  item 2
  item 3
  item 1
  </code></pre>
  
  <p>Does anybody knows a solution?
  I want that all items always appear on dropdown list (with no duplicates either)!</p>