title: add version of app at bottom navigation view is not displayed properly
body: <p>As a lot of people are probably trying to do it, I am trying to add a footer to a navigation view. I did this:</p>
  <pre><code>&lt;com.google.android.material.navigation.NavigationView
              android:id=&quot;@+id/navigationView&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:layout_gravity=&quot;start&quot;
              android:background=&quot;@color/background&quot;
              android:clipToPadding=&quot;true&quot;
              app:headerLayout=&quot;@layout/layout_nav_header&quot;
              app:menu=&quot;@menu/navigation_menu&quot;&gt;
  
              &lt;LinearLayout
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;wrap_content&quot;
                  android:layout_gravity=&quot;bottom&quot;
                  android:layout_marginBottom=&quot;24dp&quot;
                  android:orientation=&quot;horizontal&quot;&gt;
  
                  &lt;TextView
                      android:layout_width=&quot;wrap_content&quot;
                      android:layout_height=&quot;wrap_content&quot;
                      android:layout_marginStart=&quot;20dp&quot;
                      android:gravity=&quot;left&quot;
                      android:text=&quot;@string/appVersion&quot;/&gt;
  
                  &lt;TextView
                      android:id=&quot;@+id/buildInfoTv&quot;
                      android:layout_width=&quot;match_parent&quot;
                      android:layout_height=&quot;wrap_content&quot;/&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/com.google.android.material.navigation.NavigationView&gt;
  </code></pre>
  <p>This working fine but not in 2 cases: small screen because the linearlayout overlap the menu and also if the keyboard is popped up, it move the layout.</p>
  <p>Any idea how to make sure that the linear layout with the app version stick to the bottom of the navigation or also below the menu item so it's not overlapping on small screen.</p>
  <p>Thanks</p>