I've a expandable recyclerView made using Groupie which I would like to have the children included on the parent's same layout to make use of the borders for its card view. Not sure how to achieve that though.
Instead of
I would like to have this
This is the top of my parent's layout
<androidx.cardview.widget.CardView
android:id="@+id/cv_parent"
android:layout_width="match_parent"
android:layout_height="40dp"
(Tried with wrap content as well but couldn't see much difference)
And this is the layout for their children
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
Thanks very much.