0

I am doing an android application and for displaying the detail view of listed data,I need to set the selected item of a spinner.How can I set this?

I am new to android developing field..can any one pls help me

user1254613
  • 25
  • 1
  • 2
  • 4

1 Answers1

0

Using the setSelection(...) method of the Spinner widget's class, the position of the selected item can be set.

For example:

spinner.setSelection(position);
t0mm13b
  • 34,087
  • 8
  • 78
  • 110
Muhannad A.Alhariri
  • 3,702
  • 4
  • 30
  • 46