activity_main.xml

		<?xml version="1.0" encoding="utf-8"?>
		<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
		    xmlns:app="http://schemas.android.com/apk/res-auto"
		    android:id="@+id/container"
		    android:layout_width="match_parent"
		    android:layout_height="match_parent">
		
		    <com.google.android.material.bottomnavigation.BottomNavigationView
		        android:id="@+id/navBottomNavigationView"
		        android:layout_width="match_parent"
		        android:layout_height="wrap_content"
		        android:background="@drawable/ic_bg"
		        android:paddingTop="10dp"
		        android:paddingBottom="10dp"
		        app:itemTextColor="@color/nav_color"
		        app:itemIconTint="@color/nav_color"
		        app:itemIconSize="24dp"
		        app:layout_constraintBottom_toBottomOf="parent"
		        app:layout_constraintEnd_toEndOf="parent"
		        app:layout_constraintStart_toStartOf="parent"
		        app:menu="@menu/nav_menu" />
		
		    <androidx.fragment.app.FragmentContainerView
		        android:id="@+id/navFragmentContainerView"
		        android:name="androidx.navigation.fragment.NavHostFragment"
		        android:layout_width="match_parent"
		        android:layout_height="0dp"
		        app:defaultNavHost="true"
		        app:layout_constraintBottom_toTopOf="@+id/navBottomNavigationView"
		        app:layout_constraintLeft_toLeftOf="parent"
		        app:layout_constraintRight_toRightOf="parent"
		        app:layout_constraintTop_toTopOf="parent"
		        app:navGraph="@navigation/nav_view" />
		
		</androidx.constraintlayout.widget.ConstraintLayout>