I have a RecyclerView (and some other views) in a ScrollView. Currently, the RecyclerView is laid out as very small (it displays 2 of the 5 elements it contains), and it scrolls independently of the ScrollView, which is obviously not a big UX. I would like RecyclerView not to scroll and expand so that all its elements are visible.
(I know that itβs stupid to use RecyclerView in this case. I only do this because elsewhere in the application I need a regular RecyclerView with scrolling, etc., but the same content, and I donβt want to duplicate the code).
android android-recyclerview
pstobiecki
source share