0

I have a huge thing that I cannot understand! Hoping on your help!

Example: 6 children are Equally filled in RecyclerView by height with GridLayoutManager. But I need LinearLayoutManager(Don't ask me why, it doesn't matter).

Example using GridLayoutManager - all 6 children are equally filled: enter image description here

Example using LinearLayoutManager - 6 children filled and a huge white spot is left at the bottom: enter image description here

So, how to fill RecyclerView so it would fill the screen with 6 children with LinearLayoutManager as it is filling with GridLayoutManager? I'm asking how to make it in XML!!! Thank you!

Adriaan
  • 17,741
  • 7
  • 42
  • 75
pumawo
  • 11
  • 3
  • Please do not add answers to the question body itself. Instead, you should add it as an answer. [Answering your own question is allowed and even encouraged](https://stackoverflow.com/help/self-answer). Please do not add ChatGPT generated answers at all though, [it is currently banned on Stack Overflow](https://meta.stackoverflow.com/q/421831/5211833). – Adriaan Mar 27 '23 at 11:27

0 Answers0