I'm having a trouble with both the questions:
- I can't add a functional button in a fragment, more precisely its onclick function in its fragment class .kt;
- I need to add a view of a recyclerview to a room database (on the onclick of the button), and I'll show what's in this database in another recyclerview fragment. What is the best way to do the function and which logic I need to follow to do this data transfer?