如何修复所选的listItem和另一个选择?

时间:2014-04-13 13:51:28

标签: android

我在listview中有listview和textviews。我在textview上写了一个值,但是这个值会自动写另一个textview吗?我该如何修复。谢谢

 chkSelect.setOnClickListener(new OnClickListener() {
            Spinner spnProductGroup = (Spinner)findViewById(R.id.spnBrandProduct);
            @Override
            public void onClick(View v) {
                if(chkSelect.isChecked())
                {

                    ProductGroupId=UrunId.getText().toString();
                    RackPercentage= edtText.getText().toString();
                    ExistsOnRack = "1";
                    AddProducts(Integer.parseInt( spnProductGroup.getSelectedItem().toString().split("#")[1]),Integer.parseInt(UrunId.getText().toString()));
                    //Button btnSave = (Button) findViewById(R.id.btnMarkaGir);
                    //btnSave.setText("");
                    itemChecked.set(position, true);
                }
                else
                {

                    ExistsOnRack = "0";
                    //Toast.makeText(YeniSahaActivity2.this, "Lütfen ürün grubu seçiniz...", Toast.LENGTH_SHORT).show();
                    Extras e = new Extras();
                    e.ViewAlert("Lütfen ürün grubu seçiniz...", YeniSahaActivity2.this);
                    itemChecked.set(position, false);

                }

            }
        });

0 个答案:

没有答案