title: Hide Numeric Keyboard ONLY WHEN clicked outside any of the Edit Text
body: <p>I have three different Edit Text with restriction of entering only numeric values, thus tapping on any one of the Edit Text opens NUMERIC KEYBOARD.</p>
  
  <p>I tried to implement setOnFocusChangeListener for all Edit Text which ensures that when user tap anywhere outside any of the Edit Text hide the keyboard.</p>
  
  <pre><code>editText1.setOnFocusChangeListener(new View.OnFocusChangeListener() {
      @Override
      public void onFocusChange(View v, boolean hasFocus) {
          if (!hasFocus) {
              hideKeyboard(v);
          }
      }
  });
  
  editText2.setOnFocusChangeListener(new View.OnFocusChangeListener() {
      @Override
      public void onFocusChange(View v, boolean hasFocus) {
          if (!hasFocus) {
              hideKeyboard(v);
          }
      }
  });
  
  editText3.setOnFocusChangeListener(new View.OnFocusChangeListener() {
      @Override
      public void onFocusChange(View v, boolean hasFocus) {
          if (!hasFocus) {
              hideKeyboard(v);
          }
      }
  });
  </code></pre>
  
  <p>And here is the implementation of 'hideKeyBoard'</p>
  
  <pre><code>public void hideKeyboard(View view) {
          InputMethodManager inputMethodManager =(InputMethodManager)getSystemService(Activity.INPUT_METHOD_SERVICE);
          inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);
      }
  </code></pre>
  
  <p>This works fine, however, when I change focus from one EditText to another EditText, keyboard hides. This behaviour might be frustrating for user. </p>
  
  <p>How can I deal with it and avoid unnecessary hiding of keyboard.</p>
  
  <p><strong>P.S</strong> I need to ensure that keyboard is numeric not alphabetical in any case.</p>