我对这种情况一无所知,日食建议我@Override
删除spinner.onItemSelected
? 但我知道itemselected应该是这样的
spin.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener()
{
@Override
public void onItemSelected(AdapterView<?> parentView, View selectedItemView, int position, long id)
{
Object item = parentView.getItemAtPosition(position);
value = item.toString();
}
@Override
public void onNothingSelected(AdapterView<?> parentView)
{
}
});
你知道为什么 eclipse 建议我删除它吗?