When I add the RecyclerView to the layout, it shows up as a list view in vertical order. I am using tools:listitem for this. Is there a way, such that it displays a
tools:listitem
You are able to build a preview using xmlns:tools="http://schemas.android.com/tools" namespace.
xmlns:tools="http://schemas.android.com/tools"
AndroidX[About]
Support
From Android studio 3.0 you can predefine a data through the @tools:sample/* resources
Android studio 3.0
item.xml
As a result your preview will look like
[More examples]