title: Unable to disable EditText programmatically in kotlin android
body: <p>I am trying to disable an <code>EditText</code> programmatically in <code>Kotlin</code> but I am not finding any method to do. I tried below code which didnt work:</p>
  
  <pre><code>panEditText.focusable = false //Requires API 26 and above.
  
  panEditText.enabled = false //No such method found
  </code></pre>
  
  <p>How to disable <code>EditText</code> in <code>Kotlin</code> programming language?</p>