0

当从微调器中没有选择任何内容时,它会在 android 中显示警报消息

4

1 回答 1

1

首先参考Android网站本身已经提供的这篇文章:http: //developer.android.com/resources/tutorials/views/hello-spinner.html

并找到以下方法:

public void onNothingSelected(AdapterView parent) {
       // display your alert box
    }
于 2010-12-29T15:05:01.860 回答