title: Android remove focus from all Views
body: <p>This is a fairly simple question but I can't believe all answers I found were not working.</p>
  
  <p>I have a layout with two <code>EditText</code> and the bottom of the window is just some remaining blank space. I'd like each <code>EditText</code> to loose focus when the user is clicking in the blank part of the window. So my guess is that I have to put something in the <code>OnTouchListener</code> of the root <code>View</code>:</p>
  
  <pre><code>rootView.setOnTouchListener(new View.OnTouchListener() {
  
      @Override
      public boolean onTouch(View v, MotionEvent event) {
              // Put something here
      }
  });
  </code></pre>
  
  <p>I have tried several things:</p>
  
  <ul>
  <li><p>Requesting focus from the layout <code>View</code> as suggested somewhere was in fact giving focus to one of the <code>EditText</code>s. </p></li>
  <li><p>I also tried setting <code>setFocusable</code> for both <code>EditText</code>s to <code>false</code> but I was unable to put them back to <code>true</code> afterwards. </p></li>
  <li><p>I also tried the simple <code>rootView.clearFocus()</code>, but it was also giving back the focus to one <code>EditText</code>.</p></li>
  </ul>
  
  <p>EDIT: My <code>EditText</code> boxes are multilines so I can't use a 'Done' keyboard button since I need the return one to be present.</p>