How do I make WRAP_CONTENT work on a RecyclerView

后端 未结 19 1912
自闭症患者
自闭症患者 2020-11-22 12:49

I have a DialogFragment that contains a RecyclerView (a list of cards).

Within this RecyclerView are one or more CardVi

19条回答
  •  醉话见心
    2020-11-22 13:29

    You must put a FrameLayout as Main view then put inside a RelativeLayout with ScrollView and at least your RecyclerView, it works for me.

    The real trick here is the RelativeLayout...

    Happy to help.

提交回复
热议问题