Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android setting label to spinner

Tags:

android

Hi how to set a label in spinner: ie the lable should initially visible when user clicke the spinner button options visible , when user select the option the label should replace with the new item,is it possible with spinner?

like image 660
Bytecode Avatar asked Dec 02 '10 11:12

Bytecode


1 Answers

Spinners do not have "labels". Beyond that, though, what I think you are describing is exactly what a Spinner does:

  • When closed, shows the last selection made by the user, or the initial selection if it has never been opened
  • When opened, shows a selection list of available choices for the user
like image 67
CommonsWare Avatar answered Oct 20 '22 11:10

CommonsWare