RecyclerView does not fully expand to show all elements
use NestedScrollView
instead of ScrollView
and setNestedScrollEnabled(false)
on the RecyclerView
k0sh is absolutely right. Just to add, use the full class name, which is android.support.v4.widget.NestedScrollView
(make sure you have the v4 support library in your build.gradle file), or Android won't find NestedScrollView
class. Source: Error inflating class - NestedScrollView - class not found
Use NestedScrollView
instead of ScrollView
and on your NestedScrollView setisNestedScrollingEnabled = false