我想一个开关添加为菜单项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" />
Run Code Online (Sandbox Code Playgroud) 我将Android Studio更新为2.0 Preview 2,然后出现错误Renderscript目标21+目前不支持Renderscript支持模式
我正在使用renderscriptTargetApi 23
BottomSheetBehavior已在Android设计支持库23.2中引入,但它不会使屏幕的其余部分变暗,也不会阻止与UI的其余部分的交互.无论如何这可以实现吗?
android android-layout android-fragments android-view bottom-sheet