After checking implementation, the reason appears to be the following.
RecyclerView gets put into a
during measure step its height is unspecified (because
ScrollView allows any height) and, as a result, gets equal to
minimum height (as per implementation) which is apparently zero.
You have couple of options for fixing this:
- Set a certain height to
- Or keep
RecyclerView outside of
my opinion, this is the best option by far. If
height is not limited - which is the case when it's put into
ScrollView - then all Adapter's views have enough place
vertically and get created all at once. There is no view recycling anymore
which kinda breaks the purpose of