How to get an item's position from item's ID in android spinner?

Posted by Aleksander O on Stack Overflow See other posts from Stack Overflow or by Aleksander O
Published on 2010-05-25T11:01:36Z Indexed on 2010/05/25 11:31 UTC
Read the original article Hit count: 310

Filed under:

Hi!

I need to get an item's position in spinner knowing it's ID. I've tried to do it with Spinner and SpinnerAdapter classes but there are no corresponding methods there.

Thanks,

Aleksander

© Stack Overflow or respective owner

Related posts about android