title: How to enable and disable my edit box on the checkbox clilck event
body: <p>I am facing problem with enabling an edittext box at initialisation. I have disabled my editbox like so:  <code>text_edit.setFocusable(false);</code></p>
  
  <p>Later, I want to enable the textbox via the click of a checkbox.
  The textbox is not being enabled, here is my click event code:</p>
  
  <pre><code>if(((CheckBox) v).isChecked()) {
  
      Toast.makeText(User_name_search .this, "Selected", Toast.LENGTH_SHORT).show();
      text_edit.setFocusable(false);
      //checkbox.setChecked(false);
  
  } else {
      Toast.makeText(User_name_search .this, "Not Selected", Toast.LENGTH_SHORT).show();
      text_edit.setFocusable(true);
  }
  </code></pre>
  
  <p>What am I doing wrong?</p>