expandable recyclerview android kotlin
//xml
<RelativeLayout
android:id="@+id/expanded_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/item_list_expand"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
tools:ignore="MissingConstraints">
//Kotlin in adapter
binding.expandedView.visibility = if (this.expand) View.VISIBLE else View.GONE