How can I put a ListView into a ScrollView without it collapsing?

This is the only thing that worked for me:

on Lollipop onwards you can use

yourtListView.setNestedScrollingEnabled(true);

This enable or disable nested scrolling for this view
if you need backwards compatibility with older version of the OS you’ll have to use the RecyclerView.

Leave a Comment