SwitchCompat gives null pointer exception in RecyclerView
SwitchCompat
requires you to specify android:textOn
and android:textOff
example, you can change like this
<android.support.v7.widget.SwitchCompat
android:id="@+id/on_off_switch"
android:textOn="On"
android:textOff="Off"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"/>