title: Making EditText editable or not editable according to CheckBox
body: <p>I want to make an EditText object is focusable or unfocusable according to the CheckBox's situation.But these codes are not working.I can't see an error?How to do this?</p>
  
  <pre><code>atasozuTahmin.setFocusable(false);
  
  tahminAcKapaCheckBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  
          @Override
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
              if(isChecked == true){
                  atasozuTahmin.setFocusable(true);
              }else{
                  atasozuTahmin.setFocusable(false);
              }
          }
      });
  </code></pre>