Recyclerview does not expand

Asked

Viewed 52 times

0

Hello, Here’s the thing, I’m using two Recyclerview in parallel:

              <android.support.v7.widget.RecyclerView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="15dp"
                android:layout_marginTop="5dp"
                android:id="@+id/produtos"
                >
            </android.support.v7.widget.RecyclerView>

            <android.support.v7.widget.RecyclerView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="15dp"
                android:layout_marginTop="5dp"
                android:id="@+id/refeicoes"
                >
            </android.support.v7.widget.RecyclerView>

I do two different research and put it there. The problem is that Recyclerview doesn’t seem to be fully expanding. It seems to be running on the same axis. I wanted it to expand. If I had 30 products, I would show the 30 and then show Recyclerview meals. Can someone help me? Thank you.

  • Do you need one Recyclerview inside the other? This doesn’t usually work very well.

  • Hi Pablo, you’re not inside the other one. You’re next. Do you have any suggestions?

  • To refeicoes and the nameless are inside the produtos.

  • There are only two, I have arranged the formatting

  • What it would be to rotate in the same axis?

  • Wouldn’t that be an Expandablelistview? (an expandable list)

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.