3

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

enter image description here

I would like to have this

enter image description here

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.

Amir Dora.
  • 2,831
  • 4
  • 40
  • 61
Francislainy Campos
  • 3,462
  • 4
  • 33
  • 81

0 Answers0