Spinner OnItemSelectedListener不在片段中工作

时间:2016-08-05 06:40:20

标签: android

大家好我可以获取加载数据并且我可以查看但无法从该微调器列表中选择项this is my output page

1 个答案:

答案 0 :(得分:0)

  langeBtn.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {

                String selected = langeBtn.getSelectedItem().toString();
               // editor.putString("selected", selected);
               // editor.commit();
            }
            @Override
            public void onNothingSelected(AdapterView<?> arg0) {
            }
        });