 <p>You can use the code like this. I done for you..</p> <pre><code>editText.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View arg0, boolean hasFocus) { // TODO Auto-generated method stub if(hasFocus){ spinner.setVisibility(View.VISIBLE); } } }); spinner.setOnItemSelectedListener(new OnItemSelectedListener() { @Override public void onItemSelected(AdapterView&lt;?&gt; parent, View view,int position, long id) { editText.setText(spinner.getSelectedItem().toString()); //this is taking the first value of the spinner by default. } @Override public void onNothingSelected(AdapterView&lt;?&gt; parent) { // TODO Auto-generated method stub } }); </code></pre> <p>You can only use OnItemSelectedListener on spinner in android.<a href="https://developer.android.com/guide/topics/ui/controls/spinner.html" rel="nofollow">Red more from Android Developers</a>. Good luck..</p>