¡@

Home 

2014/10/16 ¤W¤È 08:15:24

android Programming Glossary: impactsb

CheckBox[] with onClickListener[]?

http://stackoverflow.com/questions/6221242/checkbox-with-onclicklistener

getResources .getStringArray R.array.impacts final boolean impactsb new boolean impactsn.length final CheckBox impactsc new CheckBox.. public void onClick View v if impactsc i .isChecked impactsb i true else impactsb i false unfortunately doing this causes.. View v if impactsc i .isChecked impactsb i true else impactsb i false unfortunately doing this causes the problem that..

CheckBox[] with onClickListener[]?

http://stackoverflow.com/questions/6221242/checkbox-with-onclicklistener

solution was to have everything in arrays String impactsn getResources .getStringArray R.array.impacts final boolean impactsb new boolean impactsn.length final CheckBox impactsc new CheckBox impactsn.length View impactsv new View findViewById R.id.gas_oil.. impactsc i .setOnClickListener new OnClickListener @Override public void onClick View v if impactsc i .isChecked impactsb i true else impactsb i false unfortunately doing this causes the problem that as far as i understand it things within.. new OnClickListener @Override public void onClick View v if impactsc i .isChecked impactsb i true else impactsb i false unfortunately doing this causes the problem that as far as i understand it things within an OnClickListener have..