Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void escolhaCheckbox(){
- if (arvorismoInfantil.isChecked()){
- edt_arvorismoInfantil.setEnabled(true);
- int valorArvorismo = Integer.valueOf(edt_arvorismoInfantil.getText().toString());
- int total;
- total = valorArvorismo * 4;
- Log.i("total", String.valueOf(total));
- }
- }
- edt_arvorismoInfantil.setEnabled(false);
- escolhaCheckbox();
- arvorismoInfantil.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
- @Override
- public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
- // aqui você habilita seu edittext usando o isChecked
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement