How to display a list and the additional text block on the screen?

Good day!

The application has a screen with the order details: text description (delivery address etc.) + list of goods. Something like this:


How to layout such a layout?





If you do so, the list of products is only the remaining part of the screen skrollitsya within this small region. I would like to scrollers the whole thing. Is this possible? May not need RecyclerView, but something else?
July 2nd 19 at 17:41
4 answers
July 2nd 19 at 17:43
In the end, came to the following solution:



 <linearlayout android:id="@+id/order_items_list">

 <linearlayout android:id="@+id/order_extra_details">





In turn order_items_list fill programmatically in the Activity:onCreate, using inflater.inflate.
July 2nd 19 at 17:45
I think you need to wrap it all in a ScrollView.
Not going to work. Tried. Have a RecyclerView has integrated processor onscreen. Now, if RecyclerView could have layout_height="wrap content", it would be all right. - parker_Blan commented on July 2nd 19 at 17:48
July 2nd 19 at 17:47
As an option to use a different ViewHolder's for your RecyclerView. The first element will be the holder with a description of the goods, the rest - holder for the list items.
Yes, this is a fallback. Would have to work with the adapter (to increase the stack size of items, check their order, etc). While I hope to find a more native solution. - parker_Blan commented on July 2nd 19 at 17:50
: You can find the implementation of RecyclerView with the mutual exclusion of two scrolls, not the easiest option but the question already sucked where possible) - parker_Blan commented on July 2nd 19 at 17:53
July 2nd 19 at 17:49
I think you should use a parallax effect to your LinearLayout with a TextView at the best personal Finance left of the screen. Read how to do it here or there


Find more questions by tags AndroidMaterial Design