title: How to hide soft keyboard on android after clicking outside EditText?
body: <p>Ok everyone knows that to hide a keyboard you need to implement:</p>
  
  <pre><code>InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
  </code></pre>
  
  <p>But the big deal here is how to hide the keyboard when the user touches or selects any other place that is not an <code>EditText</code> or the softKeyboard?</p>
  
  <p>I tried to use the <code>onTouchEvent()</code> on my parent <code>Activity</code> but that only works if user touches outside any other view and there is no scrollview.</p>
  
  <p>I tried to implement a touch, click, focus listener without any success.</p>
  
  <p>I even tried to implement my own scrollview to intercept touch events but I can only get the coordinates of the event and not the view clicked.</p>
  
  <p>Is there a standard way to do this?? in iPhone it was really easy.</p>