<?xml version="1.0" encoding="utf-8"?
>
<RelativeLayout 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:layout_width="match_parent"
android:background="@color/white"
android:id="@+id/main"
android:layout_height="match_parent"
tools:context=".MainActivity">
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_navigation"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#f5f5f5"
app:elevation="0dp"
android:layout_alignParentBottom="true"
style="@style/Widget.MaterialComponents.BottomNavigationView.PrimarySurface"
app:itemTextColor="@color/bottom_navigation_selector"
app:itemIconTint="@color/bottom_navigation_selector"
app:menu="@menu/nav_bar"
/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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:layout_width="match_parent"
android:background="@color/white"
android:id="@+id/main"
android:layout_height="match_parent"
tools:context=".MainActivity">
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_navigation"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#f5f5f5"
app:elevation="0dp"
android:layout_alignParentBottom="true"
style="@style/Widget.MaterialComponents.BottomNavigationView.PrimarySurface"
app:itemTextColor="@color/bottom_navigation_selector"
app:itemIconTint="@color/bottom_navigation_selector"
app:menu="@menu/nav_bar"
/>
</RelativeLayout>