prompt in spinner with drop down feature
<p>i have a spinner and i want the spinner to prompt as select class. as we have android:hint property for edit text  in android. i dont want the spinner with the dialog box. i want the spinner prompting or hinting before the seletion is made in drop down. is it possible??
please help!!!! 
thank you</p>

<p><img src="http://i.stack.imgur.com/kIOo1.png" alt="enter image description here"></p>

<p>i have tried the below code but dint work</p>

<pre><code>classname[0] = "SELECT CLASS";

    for (int i = 1; i &lt; classdetails.size() + 1; i++) {

        classname[i] = classdetails.get(i - 1).getClass_name() + "  "
                + classdetails.get(i - 1).getSection_name().toString();

    }

    ArrayAdapter&lt;CharSequence&gt; adapterClasses = new ArrayAdapter&lt;CharSequence&gt;(
            getApplicationContext(), R.layout.spinner_item_class,
            R.id.spinnerclasstxt, classname);
    spnrClass.setAdapter(adapterClasses);
    spnrClass.setSelection(0);

    spnrClass
            .setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {

                @Override
                public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                        int pos, long arg3) {

                    int selectedindex = pos;
                    if (selectedindex == 0) {
                        spnrSubject.setVisibility(View.INVISIBLE);
                    } else {
                        spnrSubject.setVisibility(View.VISIBLE);
                        selectedClass = classdetails.get(selectedindex - 1);

                        subjectpopulate(selectedClass);
                    }
                }

                @Override
                public void onNothingSelected(AdapterView&lt;?&gt; arg0) {

                }

            });
</code></pre>
