Android: problems with getSelectedItem on a spinner

后端 未结 6 1509
旧时难觅i
旧时难觅i 2021-01-27 00:35

I have a Spinner, and put the selected item in the body of a mail. this is my code:

@Override
protected void onCreate(Bundle savedInstanceState) {
         


        
6条回答
  •  旧巷少年郎
    2021-01-27 00:57

    mSpinner.setSelected(true);
    

    If you implement this with your spinner, it will not give null.

提交回复
热议问题