I have a BottonNavigationView. Whichever Item is selcted gets hidden. I also added the visible tag, but it still remains the same.
The code for navigation is :
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/navigation_tasks"
android:enabled="true"
android:icon="@drawable/tasks"
android:title="@string/tasks"
android:visible="true" />
<item
android:id="@+id/navigation_dashboard"
android:enabled="true"
android:icon="@drawable/ic_dashboard_black_24dp"
android:title="@string/title_dashboard"
android:visible="true" />
<item
android:id="@+id/navigation_notifications"
android:enabled="true"
android:icon="@drawable/ic_notifications_black_24dp"
android:title="@string/title_notifications"
android:visible="true" />
</menu>
The layout file contains :
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:alwaysDrawnWithCache="true"
android:background="?android:attr/windowBackground"
android:clickable="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation" />
Here are the screenshots :

