title: Hide keyboard when navigating from a fragment to another
body: <p>I have a Fragment that contains an Edit Text. When the Edit Text is pressed, the keyboard is being shown. When pressed the Save button in the upper corner, the application returns to the previous fragment, but the keyboard persists.</p>
  
  <p>I would like the keyboard to be hidden when navigating to the previous fragment. </p>
  
  <p>Please, note that I tried this solution:
  <a href="https://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard">Close/hide the Android Soft Keyboard</a>.</p>
  
  <pre><code>InputMethodManager imm = (InputMethodManager)getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(myView.getWindowToken(), 0);
  </code></pre>
  
  <p>I tried to use this in both fragments, in the onCreate method. </p>
  
  <p>I also tried to hide the soft keyboard in the layout: </p>
  
  <pre><code>android:windowSoftInputMode="stateAlwaysHidden"
  </code></pre>
  
  <p>None of these worked, unfortunately. </p>
  
  <p>I would have posted some pictures, but I do not have enough reputation yet. 
  I would appreciate any constructive help and opinion and do not forget that "A wise man can learn more from a foolish question than a fool can learn from a wise answer." :)</p>
  
  <p>Regards, 
  Alexandra</p>