I try to write the following in the fragment :
recyclerView.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL)); The error is predictable, since I prescribe the same in the fragment, and not in the activation - cannot be applied , but I don’t find a solution to this problem.