title: How to replicate android:editable="false" in code?
body: <p>In the layout you can set the <code>EditText</code> widget to be non-editable via the <code>android:editable attribute</code>.</p>
  
  <p>How can I do this in code?  I need to make the <code>EditText</code> widget to be editable depending on conditions.</p>