我有三个spinner
相同的习惯SimpleCurosAdapter
spinnerX = (Spinner)findViewById(R.id.spinnerX);
spinnerY = (Spinner)findViewById(R.id.spinnerY);
spinnerZ = (Spinner)findViewById(R.id.spinnerZ);
spinnerX.setAdapter(new SpinnerAd(this, R.layout.my_item, c, from, to));
spinnerY.setAdapter(new SpinnerAd(this, R.layout.my_item, c, from, to));
spinnerZ.setAdapter(new SpinnerAd(this, R.layout.my_item, c, from, to));
当我打电话时(例如):
spinnerX.setSelection(1);
spinnerY.setSelection(7);
spinnerZ.setSelection(3);
所有三个旋转器setSelection
都像最后一个......在位置3
。为什么?
所有微调器具有相同的数据(一个光标)