Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the number of items in a spinner?

How to get the number of items in a spinner dynamically?

like image 940
sachi Avatar asked Sep 19 '11 06:09

sachi


1 Answers

You can try:

mSpinner.getAdapter().getCount(); 
like image 76
inazaruk Avatar answered Sep 22 '22 08:09

inazaruk