title: make EditText lose focus on clicking a button
body: <p>I have two <code>EditText</code> fields in my activity and a done <code>button</code>. I want both the <code>EditText</code> fields to loose focus (that is the cursor should not not be displayed on either of them) when the user presses the button. I am using the following code:</p>
  
  <pre><code>final Button saveButton = (Button) findViewById(R.id.saveButton);
      saveButton.setOnClickListener(saveButtonListener);
  
  private OnClickListener saveButtonListener = new OnClickListener() {
  
      @Override
      public void onClick(View v) {
                  Text1.clearFocus();
                  Text2.clearFocus();
  
      }
  
  }
  </code></pre>
  
  <p>However, when I press the done button, the cursor comes up on <code>Text1</code> even if I haven't clicked on any <code>EditText</code> yet. How can I make the EditText fields loose focus on the click of the button</p>