it not as simple as you think. when you use tow scrollble element inside each other you are in hot water! you should calculate the Recycler item height and then find the whole recycler height. look at below link, I explain completely this problem.
Use RecyclerView indie ScrollView with flexible recycler item heightUse RecyclerView indie ScrollView with flexible recycler item height
I hope it help you