如上图所示:是两个spinner点击对公之后选择第一个,然后切换到个人点击第一个个人的挂失业务一直选不上,别的可以。
这是我选中第一个之后的操作代码:
productTypeItemArrayList.clear();
productTypeItemArrayList.add(new ProductTypeItem("0", "请选择", "", "", "", "", ""));
Cursor cursorSptbp = hmoscHelper.selectProductTypeByProId(secondarytype);
while (cursorSptbp.moveToNext()) {
String productId = cursorSptbp.getString(0);
String productName = cursorSptbp.getString(1);
String riskRemark = cursorSptbp.getString(2);
String bxqx = cursorSptbp.getString(3);
String isAuth = cursorSptbp.getString(4);
String secondaryType = cursorSptbp.getString(5);
String companyName = cursorSptbp.getString(6);
ProductTypeItem productTypeItem = new ProductTypeItem(productId, productName, riskRemark, bxqx, isAuth, secondaryType, companyName);
productTypeItemArrayList.add(productTypeItem);
}
cursorSptbp.close();
z这是第二个选中之后的操作:
cpmct.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
ProductTypeItem typeItem = (ProductTypeItem) cpmct.getSelectedItem();
bxqj.setText(typeItem.getBxqx());
fxtsStr = typeItem.getRiskRemark();
}
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
});
选择不上是什么意思?
那你好歹打个log呀,这么自信么?代码都到哪里都不知道呢。