SuperRecyclerView icon indicating copy to clipboard operation
SuperRecyclerView copied to clipboard

height: wrap_content not working

Open Jdruwe opened this issue 9 years ago • 1 comments

I am trying to get the SuperRecyclerView to wrap its content, this is the result:

But when I use the normal RecyclerView it does work:

How can I fix this?

Jdruwe avatar May 26 '15 12:05 Jdruwe

Hi @Jdruwe, I don't really understand where is the RecyclerView on your screenshots.

In case you want to set parameters other than match_parent I suggest you replace the mainLayout:

<com.malinskiy.superrecyclerview.SuperRecyclerView
            ...
            xmlns:app="http://schemas.android.com/apk/res-auto"
            app:mainLayoutId="@layout/custom_layout"
            .../>

Keep in mind that you have to set proper id's, so start by just copying default one.

Malinskiy avatar Jul 28 '15 13:07 Malinskiy