📜  微调器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:09.899000             🧑  作者: Mango

代码示例1
mySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
    
    @Override
    public void onItemSelected(AdapterView parent, View view, int position, long id) 
    { 
        // An item was selected. You can retrieve the selected item using
        // parent.getItemAtPosition(pos)
    }

    @Override
    public void onNothingSelected(AdapterView parent) 
    { 
        // If an option is removed then what to do
        // or anything else
    }

});