Android Question Spinner's properties (Size and GetItem) are not working properly

In my code I am trying to access the Size of the Spinner which has 24 items in it, but Spinner.Size is always returned as Zero though it has items in it (it works properly only when I touch and spinner and select an item manually)
It should be easy to understand my problem from the attached Image.
Experts @here please help

1591777192381.png

Version of software I am using is 9.80
1591777831777.png
 
Last edited:
Top