Two Recyclerviews in one layout

#1

Suppose we want to display two lists on the same layout,do we load two different recyclerviews on the same layout such that each recyclerview corresponds to a fragment.If this is ok,than we have two classes for two different recylerviews,how do we avoid duplication in the code?