title: Hide BottomNavigationView when Keyboard opens
body: <p>I have a <strong>MainActivity</strong> that has a <strong>android.support.design.widget.BottomNavigationView</strong> and a <strong>FrameLayout</strong> init:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.constraint.ConstraintLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      tools:context="com.virascience.app.MainActivity"
      tools:showIn="@layout/app_bar_main"&gt;
  
      &lt;FrameLayout
          android:id="@+id/main_container"
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginBottom="@dimen/actionBarSize"
          tools:context="com.virascience.app.MainActivity"&gt;
  
      &lt;/FrameLayout&gt;
  
      &lt;android.support.design.widget.BottomNavigationView
          android:id="@+id/navigation"
          android:layout_width="0dp"
          android:layout_height="wrap_content"
          android:layout_marginEnd="0dp"
          android:layout_marginStart="0dp"
          android:background="?android:attr/windowBackground"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintLeft_toLeftOf="parent"
          app:layout_constraintRight_toRightOf="parent"
          app:menu="@menu/navigation" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>Now when I clicked on <strong>SearchView</strong> in one of my fragments, <strong>BottomNavigationView</strong> goes up with the keyboard.</p>
  
  <p>I tried this code in <strong>AndroidManifest.xml</strong> but not working for me:</p>
  
  <blockquote>
    <p>android:windowSoftInputMode="adjustPan"</p>
  </blockquote>
  
  <p>How can I hide <strong>BottomNavigationView</strong> when keyboard opens?</p>