title: Android: How to turn off IME for an EditText?
body: <p>How do I turn off the IME-functionality of an <code>EditText</code>?</p>
  
  <p>Or: How do I avoid the display of the IME-keyboard?</p>
  
  <p>I have a layout where my special keyboard sits below the <code>EditText</code> so there's no need to show the IME. Please understand that I cannot implement my keyboard as IME as it is specific for this very <code>EditText</code> and using it in any other context would only cause problems.</p>
  
  <p>I tried to use</p>
  
  <pre><code>getWindow().setSoftInputMode(LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
  </code></pre>
  
  <p>in the <code>onCreate()</code> of the activity, but that doesn't seem to do anything in this situation.</p>