int nvalue=2;
Spinner[] spinner = new Spinner[nvalue];
spinner[].setonitem?
我有微调器数组,我想setOnItemSelectedListener
用于每个setOnItemSelectedListener
微调器。如何用于数组微调器?
spinner[0].setOnItemSelectedListener(new OnItemSelectedListener()
{
public void onItemSelected(AdapterView<?> arg0, View arg1,
int arg2, long arg3)
{
}
public void onNothingSelected(AdapterView<?> arg0)
{
// TODO Auto-generated method stub
}
});
将显示错误