How to create and use a fragment of a recycler view in a navigation view bottom?

Good day days.The point is that I created a project with bottom navigation view .When you click on the second button I should display a fragment with the recycler,but the problem is that I don't know how to create this piece.Was able to create a single class to cards:ModelItem.The other adapter,and recycler layoutmanager: Main2Activity.And the main class with BottomNavigationView: MainActivity.But if you just take the intent and add recycler in button in the navigation,it opens a new page.And I need the navigation to stay.I want to fix this fragment,but only know its basics.Tried the whole code with Main2Activ in the fragment class to insert,but some errors come out.How to be?
June 7th 19 at 15:38
0 answer

Find more questions by tags AndroidJava