Android Question Exposing Spinner Properties

RichardN

Well-Known Member
Licensed User
Longtime User
Being able to set view properties by collection is so useful. I have a tablet application that has a complicated interface containing many spinners to set parameters. It would be very useful to set properties like this..... Instead by many single lines of code....
B4X:
For Each V As View In pnlMain.GetAllViewsRecursive

   'This works fine
   If V Is Label Then V.Color = Colors.Yellow

   'But .DropdownBackgroundColor is sadly unavailable
   If V Is Spinner Then V.DropdownBackgroundColor = Colors.LightGray

Next

Is there a way of exposing spinner properties by collection so they can be set en-masse?
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
 If V Is Spinner Then
   dim sp as spinner = v
   sp.DropdownBackgroundColor = Colors.LightGray
end if
 
Last edited:
Upvote 0
Top