title: What does GetItemIdAtPosition in MonoDroid return?
body: <p>I couldn't find any documentation for the function online, Google found nothing even remotely useful. I tried to find the original code but failed :) (I doubt I could've made sense of it anyway.) So does anyone know what this function actually does; what "Item ID" it returns?</p>
  
  <p>I figured that if <code>GetItemAtPosition</code> returns the string contained in an item, <code>GetItemIdAtPosition</code> might return the content of a "name" attribute. But as usual it's not as expected.</p>
  
  <p>I used a spinner based on this:</p>
  
  <pre><code>&lt;string-array name="choices"&gt;
      &lt;item&gt;Choose action&lt;/item&gt;
      &lt;item name="3"&gt;Back to 3&lt;/item&gt;
      &lt;item name="2"&gt;Back to 2&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>Using a toast for output when a choice is selected from the spinner:</p>
  
  <pre><code>private void choice_callback (object sender, ItemEventArgs e) {
      Spinner spinner = (Spinner)sender;
      string toast = string.Format ("Chosen action: {0} at pos {1} ID {2}", 
          spinner.GetItemAtPosition (e.Position), 
          e.Position, 
          spinner.GetItemIdAtPosition(e.Position));
      Toast.MakeText (this, toast, ToastLength.Short).Show ();
  }
  </code></pre>
  
  <p>Outputs "Chosen action: Back to 3 at pos 1 ID 1" and similar; in other words, the return of <code>spinner.GetItemIdAtPosition(e.Position)</code> seems to be the same as <code>e.Position</code> itself.</p>
  
  <p>Side note: The app is based on this spinner tutorial: <a href="http://docs.xamarin.com/android/tutorials/User_Interface/spinner" rel="nofollow">http://docs.xamarin.com/android/tutorials/User_Interface/spinner</a>. I only adopted the bits you can see above to try and see if items in a drop-down list can be identified other than by their position.</p>