title: Android: How to add enum labels to a spinner, not the enum.values()?
body: <p>I am trying to make a spinner list where my users can select a language translations based on enum 'Language' class.</p>
  
  <p>Adding the '<code>Language.values()</code>' works, 
  but the spinner shows "af" not "AFRIKAANS" 
  I want the "AFRIKAANS" name shown in the spinner and <code>onItemSelected</code> I want the get the "af" value.</p>
  
  <p>is this possible?</p>
  
  <pre><code>public enum Language {
         AUTO_DETECT(""),
         AFRIKAANS("af"),
         ALBANIAN("sq"),
         AMHARIC("am") ....and so no..
  </code></pre>
  
  <p>See hold enum class here:
  <a href="http://code.google.com/p/google-api-translate-java/source/browse/trunk/src/com/google/api/translate/Language.java" rel="nofollow">http://code.google.com/p/google-api-translate-java/source/browse/trunk/src/com/google/api/translate/Language.java</a></p>
  
  <pre><code>spinnerLanguage = (Spinner) findViewById(R.id.translate_spinner_language);
  spinnerLanguage.setAdapter(new ArrayAdapter&lt;Language&gt;(this, android.R.layout.simple_spinner_item, Language.values()));
  spinnerLanguage.setOnItemSelectedListener(new OnItemSelectedListener() {
      public void onItemSelected(AdapterView&lt;?&gt; parent, View v, int pos, long id) 
      {
         Log.i("language", parent.getItemAtPosition(pos).toString());
      }
      public void onNothingSelected(AdapterView&lt;?&gt; parent) 
      {
      }
  });
  </code></pre>