title: spinner adding string array on item selection how can get item related value in android
body: <p>i am developing one spinner this spinner i am string array </p>
  
  <pre><code>spinner = (Spinner)this.findViewById(R.id.mlg); 
  final CharSequence[] itemArray =getResources().getTextArray(R.array.RectBeam); 
  final List&lt;CharSequence&gt; itemList =new ArrayList&lt;CharSequence&gt;(Arrays.asList(itemArray)); 
  adapter = new ArrayAdapter(this,android.R.layout.simple_spinner_item,itemList); 
  
  adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); 
  
  spinner.setAdapter(adapter); 
  spinner.setOnItemSelectedListener(new OnItemSelectedListener() { 
  
  public void onItemSelected(AdapterView&lt;?&gt; parent, View view, 
  int pos, long id) { 
  Toast.makeText(parent.getContext(), "The planet is " + 
  parent.getItemAtPosition(pos).toString(), Toast.LENGTH_LONG).show(); 
  
  } 
  </code></pre>
  
  <p>............................</p>
  
  <pre><code>&lt;string-array name="RectBeam"&gt;
  &lt;item value="3000000" &gt; Steel&lt;/item&gt;&lt;/string-array&gt; 
  </code></pre>
  
  <p>this is the spinner related string array i am get the spinner item i am using parent.getItemAtPosition(pos).toString(),done my problem is particular item value how can get </p>
  
  <pre><code>example :  steel-----------&gt;3000000 
  </code></pre>