Android Question Get Last Index in Spinner

Hedi

Member
Hello everyone,

Can i get the last index in spinner?

For example,

I have 3 items in my spinner, Contains: (Game - Water - Book)

The last index is 2 (Book)

Thanks for your helps.
 
Solution
Can i get the last index in spinner?

1641364027474.png


Presumably it would be this property ? but minus 1 because computers like to start counting at 0 ?
Top