嵌套RecyclerView中具有不同单元格宽度和高度的自定义layoutManager

that what i need I need to build such markup for my recyclerView. The main problem is that my recyclerView is nested in another recyclerView. I tried using SpannedGridLayoutManager and SpannedGridLayoutManager, but none of them work in my situation. If I use Height = "wrap_conetnt" in my recyclerView, then nothing is rendered, but if I use Height = "match_parent", only the part that fits the screen is drawn. Please tell me how to solve this problem.