I have a fragment with a toolbar and a recyclerView inside it.
I am populating the recyclerView with dummy data and then try to show them. For some reason, the last
Create a FrameLayout put the RecycerView in it having it match_parent for both the width and the height. You can size the framelayout however you want.
FrameLayout
RecycerView
match_parent
width
height
framelayout