Я пытаюсь добавить переключатель как menuitem в NavigationView, как этот
Я использовал атрибут actionViewClass, но он отображает только заголовок.
<item
android:id="@+id/navi_item_create_notifications_sound"
android:title="Notifications Sounds"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:actionViewClass="android.support.v7.widget.SwitchCompat"
app:showAsAction="always" />