Here's what my bottom navigation bar in XML looks like:
<android.support.design.widget.BottomNavigationView
android:id="@+id/bottom_nav"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@android:color/white"
app:itemBackground="@color/primary"
app:elevation="8dp"
app:menu="@menu/main_activity_bottom_nav"/>
If I remove app:itemBackground="@color/primary"
, the elevation shows properly, but the moment I add that back in, it disappears.