You can create a custom view that extends the recycler view class
create linear layout
add a button and a recycler view
create class for the new view
use your new custom view in XML
and add the listener to the button
and that's it
hope that helps to give you an idea