1

i am using a spinner control in my application.i want to set a label on d spinner as "select item" when the page loads.when user trying to select something from the spinner the item should be displayed on the label.is it possible?then how?plz help me

andro-girl
  • 7,989
  • 22
  • 71
  • 94

1 Answers1

3

Use android:prompt. See this link

 <Spinner 
    android:id="@+id/spinner"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:drawSelectorOnTop="true"
    android:prompt="@string/planet_prompt"
/>
ilarele
  • 128
  • 2
  • 6