I think to do it through ColorStateList, but maybe there is an easier option? Still there is an option through the creation of LinearLayout inside, but I do not want to redo all the menus for the sake of one element.
<android.support.design.widget.NavigationView android:id="@+id/nav_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" android:fitsSystemWindows="true"> <LinearLayout android:id="@+id/linear_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start" android:background="@color/white" android:orientation="vertical" android:theme="@style/ThemeOverlay.AppCompat.Dark"> ... </LinearLayout> </android.support.design.widget.NavigationView>