'How to center buttons in BottomNavigationView?

I updated the implementaion for navigation in my project, and the buttons in the bottom menu are stretched across the entire width. How do I get them back to be in the middle?

Also, now, for some reason, when you click on these buttons, the effect of pressing is stretched in gray in a rectangular shape throughout the size of the button, rather than as before, beautiful, round. Photo attached, what I meant

<com.google.android.material.bottomnavigation.BottomNavigationView
        android:id="@+id/bottomMenu"
        android:layout_width="match_parent"
        android:layout_height="78dp"
        android:layout_alignParentBottom="true"
        app:itemIconTint="@color/bottom_navigation_items_color"
        app:itemTextAppearanceActive="@style/BottomNavigationViewTextStyle"
        app:itemTextAppearanceInactive="@style/BottomNavigationViewTextStyle"
        app:itemTextColor="@color/bottom_navigation_items_color"
        app:labelVisibilityMode="labeled"
        app:menu="@menu/bottom_navigation_menu" />

Here problems: enter image description here

enter image description here



Sources

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

Source: Stack Overflow

Solution Source