2 u014609946 u014609946 于 2015.06.08 20:20 提问

setonitemselect 监听器 无法运行

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final String[]ID=new String[]{"20142","20141","20135"};

            xq.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
                @Override
                public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {

                    kc.setText(PostUtil.sendPost(ID[position]).toString());
                }

                @Override
                public void onNothingSelected(AdapterView<?> parent) {
                }
            });


        }

具体代码如上,求大神帮忙

Csdn user default icon
上传中...
上传图片
插入图片