title: Set default value in spinner as "Select"
body: <p>How do we set "Select" (default value) in a spinner as the first value ? I have browsed through here, and haven't found any clear solution or haven't understood them. I am pasting my sample code below. Please suggest a solution or explaination based on the same for my understanding. Thanks !</p>
  
  <p>This is my MainActivity :</p>
  
  <pre><code>int[] icons = new int[]{R.drawable.bike, R.drawable.briefcase,
          R.drawable.butterfly, R.drawable.coffee, R.drawable.home, R.drawable.kids, R.drawable.monitoring};
  
   @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_page2);
      spinner = (Spinner) findViewById(R.id.spinner1);
      CustomAdapter customAdapter = new CustomAdapter(this, getResources().getStringArray(R.array.titles),
              getResources().getStringArray(R.array.description), icons);
      spinner.setAdapter(customAdapter);
     }
  </code></pre>
  
  <p>And this is my Adapter below</p>
  
  <pre><code>public class CustomAdapter  extends ArrayAdapter&lt;String&gt;{
  
  Context c;
  String [] titles;
  String [] desc;
  int [] icons;
  public CustomAdapter(Context context, String[] titles, String [] desc, int [] imgs) {
      super(context, R.layout.layout_row, R.id.titles, titles);
      this.c = context;
      this.titles = titles;
      this.desc = desc;
      this.icons = imgs;
  }
  
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
      View row = convertView;
      MyViewHolder holder = null;
      if(row == null){
          LayoutInflater inflater = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
          row = inflater.inflate(R.layout.layout_row, parent, false);
          holder = new MyViewHolder(row);
          row.setTag(holder);
      }else {
          holder = (MyViewHolder) row.getTag();
      }
      holder.img_Icon.setImageResource(icons[position]);
      holder.tv_Titles.setText(titles[position]);
      holder.tv_Desc.setText(desc[position]);
      return row;
  }
  }
  
  class MyViewHolder{
  TextView tv_Titles;
  TextView tv_Desc;
  ImageView img_Icon;
  public MyViewHolder(View v) {
      tv_Titles = (TextView) v.findViewById(R.id.titles);
      tv_Desc= (TextView) v.findViewById(R.id.desc);
      img_Icon = (ImageView) v.findViewById(R.id.icons);
  }
  }
  </code></pre>
  
  <p>My string array res :</p>
  
  <pre><code>&lt;string-array name="titles"&gt;
      &lt;item&gt;Sunday&lt;/item&gt;
      &lt;item&gt;Monday&lt;/item&gt;
      &lt;item&gt;Tuesday&lt;/item&gt;
      &lt;item&gt;Wednesday&lt;/item&gt;
      &lt;item&gt;Thursday&lt;/item&gt;
      &lt;item&gt;Friday&lt;/item&gt;
      &lt;item&gt;Saturday&lt;/item&gt;
  &lt;/string-array&gt;
  
  &lt;string-array name="description"&gt;
      &lt;item&gt;This is Sunday&lt;/item&gt;
      &lt;item&gt;This is Monday&lt;/item&gt;
      &lt;item&gt;This is Tuesday&lt;/item&gt;
      &lt;item&gt;This is Wednesday&lt;/item&gt;
      &lt;item&gt;This is Thursday&lt;/item&gt;
      &lt;item&gt;This is Friday&lt;/item&gt;
      &lt;item&gt;This is Saturday&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>