Spinner first item default set empty value?
<p>Here in this code i have added pincode numbers from 600000 to 600113 in the spinner but i want the first position to be just empty. When the user clicks only then the item should be shown. Please see my code -</p>

<pre><code>final String[] myarray=new String[114];

    for(int i=0;i&lt;114;i++)
    {

    myarray[i]=String.valueOf(a);
    a++;
    }
    ArrayAdapter&lt;CharSequence&gt; adapter = new ArrayAdapter&lt;CharSequence&gt;(MainActivity.this,
            android.R.layout.simple_spinner_dropdown_item,myarray);
    adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    addnum_spinner.setAdapter(adapter);
    lv.setOnItemClickListener(itemClickedListener);

  //Spinner click  

    addnum_spinner.setOnItemSelectedListener(new OnItemSelectedListener() {
        @Override
        public void onItemSelected(AdapterView&lt;?&gt; parentView, View selectedItemView, int position, long id) {
            // your code here
            String value = myarray[position];

            //
        }

        @Override
        public void onNothingSelected(AdapterView&lt;?&gt; parentView) {
            // your code here
        }

    });
</code></pre>
