How to set RecyclerView layoutManager from XML?
This worked for me - just add app:layoutManager="LinearLayoutManager" and you're good to go
app:layoutManager="LinearLayoutManager"