title: How to use custom list view with bottom navigation bar in android java?
body: <p>Unable to use bottom navigation in this code on full page on list view is visible</p>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
          xmlns:tools=&quot;http://schemas.android.com/tools&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:orientation=&quot;vertical&quot;
          android:theme=&quot;@style/Theme.AppTheme&quot;
          app:titleTextAppearance=&quot;@font/montserrat_regular_400&quot;
          tools:context=&quot;.AddedDevicesActivity&quot;&gt;
  
      &lt;ListView
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:layout_marginBottom=&quot;50dp&quot;
          tools:listitem=&quot;@layout/list_item&quot;
          android:layout_alignParentBottom=&quot;true&quot;&gt;
      &lt;/ListView&gt;
  
      &lt;com.google.android.material.bottomnavigation.BottomNavigationView
          android:id=&quot;@+id/bottomNavigationBar&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          android:background=&quot;@color/white&quot;
          app:menu=&quot;@menu/menu&quot;/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>Unable to use bottom navigation in this code, On full page only list view is visible.</p>