How can I get two RecyclerViews under each other in one layout? I don\'t want to have a single RecyclerView for all items. My code:
You should create an XML layout file like this
And in the code, you should call setNestedScrollingEnabled(false)
RecyclerView ingredientsList = findViewById(R.id.ingredients_list);
RecyclerView stepsList = findViewById(R.id.steps_list);
ingredientsList.setNestedScrollingEnabled(false);
stepsList.setNestedScrollingEnabled(false);