CheckBox android studio

0

How can I display my checked-in checkbox with recovered code value.

I was able to recover the value

checkBox1 = (CheckBox) view.findViewById(R.id.check1);

and saved in a var

if (checkBox1.isChecked()){
  check1InputLayout = "1";
  }else{
  check1InputLayout = "0";
  }

I wanted to show in my XML the value true or false according to the result of the check

    
asked by anonymous 25.10.2017 / 04:11

0 answers