'How can i add custom background in BottomNavigationView

This is my xml code for bottommnavigationview

 <com.google.android.material.bottomnavigation.BottomNavigationView
    android:id="@+id/bottomNavigationView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:elevation="15dp"
    android:fitsSystemWindows="true"
    android:foreground="?attr/selectableItemBackground"
    android:visibility="visible"
    app:elevation="@dimen/margin_10dp"
    app:itemBackground="?attr/backgroundColor"
    app:itemIconSize="22dp"
    app:itemIconTint="@color/bottom_navigation_text_selector"
    app:itemTextAppearanceInactive="@style/BottomNavigation.InActiveItemTextAppearance"
    app:itemTextAppearanceActive="@style/BottomNavigation.ActiveItemTextAppearance"
    app:itemTextColor="@color/bottom_navigation_text_selector"
    app:labelVisibilityMode="labeled"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@id/container"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintBottom_toBottomOf="parent"
    app:menu="@menu/home_bottom_menu" />

enter image description here

See the red arrow i want to develop this background below my each selected item



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source