title: c# Xamarin AutoCompleteTextView shows nothing
body: <p>In Xamarin Android, I'm trying to bind an object to AutocompleteTextView to show name/surname, but nothing is displayed into the AutocompleteTextView.. (with a ListView instead of AutocompleteTextView everything works)
  Into AutocompleteTextView i would like to show the name a Player from a List.</p>
  
  <pre><code>[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
  public class MainActivity : AppCompatActivity
  {
      private AutoCompleteTextView autocomplete;
      private CustomAdapter adapter;
      public List&lt;Player&gt; players;
  
      protected override void OnCreate(Bundle savedInstanceState)
      {
          base.OnCreate(savedInstanceState);
          Xamarin.Essentials.Platform.Init(this, savedInstanceState);
          // Set our view from the "main" layout resource
          SetContentView(Resource.Layout.activity_main);
  
          players = new List&lt;Player&gt;();
          players.Add(new Player("James"));
          players.Add(new Player("John"));
          players.Add(new Player("Jack"));
          players.Add(new Player("Hugo"));
  
          autocomplete = FindViewById&lt;AutoCompleteTextView&gt;(Resource.Id.autocomplete);
          adapter = new CustomAdapter(this, Resource.Layout.model, players);
  
          autocomplete.Adapter = adapter;
      }
  
      ..
  </code></pre>
  
  <p><strong>CustomAdapter</strong> </p>
  
  <pre><code>public class CustomAdapter : ArrayAdapter
  {
      private Context c;
      private List&lt;Player&gt; players;
      private int resource;
      private LayoutInflater inflater;
  
      public CustomAdapter(Context context, int resource, List&lt;Player&gt; objects) : base(context, resource, objects)
      {
          this.c = context;
          this.resource = resource;
          this.players = objects;
      }
  
      public override Android.Views.View GetView(int position, Android.Views.View convertView, ViewGroup parent)
      {
          if (inflater == null)
          {
              inflater = (LayoutInflater)c.GetSystemService(Context.LayoutInflaterService);
          }
  
          if (convertView == null)
          {
              convertView = inflater.Inflate(resource, parent, false);
          }
  
          MyHolder holder = new MyHolder(convertView);
          holder.NameTxt.Text = players[position].Name;
  
          return convertView;
      }
  }
  </code></pre>
  
  <p><strong>Player</strong></p>
  
  <pre><code>public class Player
  {
      public String name;
  
      public Player(string name)
      {
          this.name = name;
      }
  
      public string Name
      {
          get { return name; }
      }
  }
  </code></pre>
  
  <p><strong>CustomItem</strong></p>
  
  <pre><code>public class CustomItem
  {
      public string Heading { get; set; }
  }
  </code></pre>
  
  <p><strong>MyHolder</strong></p>
  
  <pre><code>public class MyHolder
  {
      public TextView NameTxt;
  
      public MyHolder(Android.Views.View itemView)
      {
          NameTxt = itemView.FindViewById&lt;TextView&gt;(Resource.Id.nameTxt);
      }
  }
  </code></pre>
  
  <p>Here <strong>model.xml</strong> </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; 
  &lt;LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android"
      android:orientation = "horizontal"
      android:layout_width = "match_parent"
      android:layout_height = "match_parent"&gt;
      &lt;TextView 
      android:text = "Medium Text"
      android:layout_width = "match_parent"
      android:layout_height = "wrap_content"
      android:id = "@+id/nameTxt"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here <strong>activity_main.xml</strong></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
          &lt;AutoCompleteTextView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:id="@+id/autocomplete" /&gt;
   &lt;/LinearLayout&gt;
  </code></pre>