title: Using a custom list adapter with the AutoCompleteTextView and still keeping the functionality of the auto complete working the same
body: <p>So say I use the following adapter for the AutoCompleteTextView:</p>
  
  <pre><code>public class RosterAdapter extends ArrayAdapter&lt;Player&gt; {
  ...
  
  }
  </code></pre>
  
  <p>That's using an object called Player, where as the default AutoCompleteTextView works with a String.</p>
  
  <p>The list displays fine when I use the custom one, but the only issue I have is when I start typing something, it doesn't display the right things.</p>
  
  <p>For example - if I start typing <code>bo</code>, I would expect people with the name <code>Bob Henderson</code>, <code>Garry Bobrinski</code>, etc..</p>
  
  <p>But what comes up is the same list, which doesn't seem to matter what I type - just randomly comes up.</p>
  
  <p>Can I not use a custom object for this to work? Do I have to use a String for it to match the entries properly? Or is there someway I can tell it to look at a specific string for each of the entries?</p>
  
  <p><strong>* Update *</strong></p>
  
  <p>Here's some more code - this is how I set the custom adapter <code>RosterAdapter</code>. This works, but the autocomplete aspect of it doesn't function properly. It's almost like it gets confused and doesn't know what to look for in the object, to match the typed string.</p>
  
  <pre><code>AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.autocomplete_players);
              RosterAdapter adapter = new RosterAdapter(RosterActivity.this, R.layout.roster_row, players);
              textView.setAdapter(adapter);
  </code></pre>
  
  <p>This is using a generic ArrayAdapter, and this works fine for matching the entries:</p>
  
  <pre><code>AutoCompleteTextView textView = (AutoCompleteTextView) findViewById(R.id.autocomplete_players);
              ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(RosterActivity.this, R.layout.players_autocomplete, players);
              textView.setAdapter(adapter);
  </code></pre>