Spinner OnItemSelectedListener

前端 未结 2 1487
难免孤独
难免孤独 2021-01-05 16:31

I can\'t find an example of how to do this in mono.

Any help?

Edit: Added code

foreach (equip item in list)
   {
        tr = new TableRow(         


        
2条回答
  •  不知归路
    2021-01-05 17:12

    you can use the tag like

    bool userClick = false;
    
    spinner.ItemSelected += (sender, e) => {
                if(userClick) {
                    --- do stuff
                }
                userClick = true;
            };
    

    When you create/update the spinners adapter based on a SQL Data

    userClick = false;
    

提交回复
热议问题