@Override
public void onItemSelected(AdapterView<?> parent, View view,
int position, long id) {
Toast.makeText(TryActivity.this, "您选择的是:"+parent.getItemAtPosition(position), Toast.LENGTH_SHORT).show();
}//不加加粗的类名会报错
原文:http://www.cnblogs.com/Defry/p/4373386.html