title: Android - EditText not editable and not selectable
body: <p>In my activity code I have these lines</p>
  
  <pre><code>EditText editText=(EditText)findViewById(R.id.editText);
  editText.setTextIsSelectable(false);
  </code></pre>
  
  <p>What I want to achieve is a <code>EditText</code> uneditable and unselectable.
  With the previous line I try to achieve the second option, but it'doesn't work. The <code>EditText</code> is still selectable.</p>
  
  <p>In order to make the <code>EditText</code> uneditable I have not found any method such as <code>setEditable</code> or similar. I read about setting <code>InputType</code> but I had no success.</p>
  
  <p>However the unselectable constraint can be weakened. My main goal is that the text inside the <code>EditText</code> cannot change for any reason. For these reason the <code>EditRext</code> could be selectable but I want that no user can cut the text.</p>
  
  <p><strong>I want no XML but only Java code. All these things are needed to to programmatically.</strong></p>