What is the difference between `id` and `pos` n a Spinner's OnItemSelectedListener?

98 views Asked by At

When creating a Spinner, I assign an OnItemSelectedListener using setOnItemSelectedListener. When a select an item in the spinner, the onItemSelected method is called, with arguments including position and id.

From my observations, position and id always have the same values. Is there any difference in the meaning of these values when using an OnItemSelectedListener with a Spinner?

0

There are 0 answers