title: Set values and display Text in Spinner
body: <p>I have Spinner for choose file from assets by the string like this but I want to display other names in Spinner  .. now work fine but show name pic.jpg .. I want text and value </p>
  
  <p>text</p>
  
  <pre><code>String s = {"picture car" , "picture mobile"}
  </code></pre>
  
  <p>and value </p>
  
  <pre><code>String[] spinnerValue = {"pic.jpg", "pic2.jpg"};
  
  
   spinnerDropDownView =(Spinner)findViewById(R.id.spinner1);
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;&gt;(test.this, android.R.layout.simple_list_item_1, spinnerValue);
          spinnerDropDownView.setAdapter(adapter);
  </code></pre>