So I want a navigation bar at the bottom of the screen with 4 items but for some reason only the first one is showing and the others appear only when i click them.
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/bottom_navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="@color/white"
app:itemTextColor="@color/black"
app:menu="@menu/navigation_bar_bottom_menu" />
My menu:
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/nav_home"
android:title="@string/navigation_bar_home_text" />
<item
android:id="@+id/nav_inbox"
android:title="@string/navigation_bar_inbox_text" />
<item
android:id="@+id/nav_notes"
android:title="@string/navigation_bar_notes_text" />
<item
android:id="@+id/nav_profile"
android:title="@string/navigation_bar_profile_text" />
</menu>
The bar is displayed like this just with the first item showing:
