Horizontal RecyclerView follows first item height with wrap_content

前端 未结 3 1460
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-16 00:32

I have a RecyclerView with a horizontal layout. The height of the individual adapter items can depend on the content of the item.

So in theory it can lo

3条回答
  •  太阳男子
    2020-12-16 01:06

    Since this question is getting quite a lot of traction and I only posted my personal solution in the comments I'll submit an answer as well.

    --

    I decided to use Google's Flexbox layout library to achieve what I wanted. It's very customizable and I would recommend it to people who are trying to solve similar problems.

提交回复
热议问题