Linked Questions
33 questions linked to/from Android 5.0 - Add header/footer to a RecyclerView
332 votes
21 answers
257k views
Is there an addHeaderView equivalent for RecyclerView?
I'm looking for an equivalent to addHeaderView for a recycler view. Basically I want to have an image with 2 buttons be added as a header to the listview. Is there a different way to add a header view ...
67 votes
12 answers
89k views
RecyclerView header and footer
Maybe this question has been asked before, but I could not seem to find a precise answer or solution. I started using the RecyclerView, and I implemented it using the LinearLayoutManager. Now I want ...
15 votes
4 answers
20k views
Parallax header effect with RecyclerView
I want to change my ListView I currently have over to use RecyclerView so I can make use of StaggeredGridLayoutManager but RecyclerView does not have the ability to add a header like ListView. ...
7 votes
3 answers
5k views
RecyclerView within ScrollView wrap_content height not working as intended
I have a RecyclerView embedded within a ScrollView. Here is the complete layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
8 votes
3 answers
2k views
androidx Recycler View match constraint (0dp) with wrap content behaviour
I have simple recycler view here, what I want is: when list is short: stick the button below the recycler view when list is long: stick the button bottom of screen yet recycler view is wrapping ...
9 votes
4 answers
799 views
How to populate different object with same fields or properties in same recyclerview in android
I am going to develop soccer app, and having following json response.(link) I have two different class with different names, but with same properties or fields and want to display one same single ...
2 votes
3 answers
2k views
Nested ArrayList while creating RecyclerView
I am developing an android application where i am using a RecyclerView to display a list of items.I am getting the list from server as json.So my problem is within this list i am getting another list ...
2 votes
1 answer
1k views
ConstraintLayout: Create a button that fills space after a RecyclerView
I have a horizontal RecyclerView inside a ConstraintLayout. I want to place a button at the end of the RecyclerView. When the recycler is empty, the button should expand to all available space. When ...
0 votes
1 answer
2k views
How to show more in Recylerview in android [duplicate]
I am developing an app in which there is recyclerview in which I have to show more at bottom on which user scroll load more data. Please help me out from this problem. Here is my fragment class where ...
-1 votes
1 answer
877 views
How to hide RecyclerView footer while list is empty?
How to hide RecyclerView footer while list is empty and show it again when list has some items? I implemented footer according to this answer
5 votes
1 answer
1k views
Scroll nestedscrollview to end before child recyclerview scrolls
here is my layout ________________ ___ | | || | Linear | || | Layout | || | | || nested scroll view |______________| || || || || || ...
0 votes
1 answer
1k views
Sticky Header with recylerview
I have implemented sticky headers with RecyclerView. Now I want to add one textview and one imageview above RecyclerView while scrolling sticky headers is working fine and textview should be scrolled ...
2 votes
1 answer
1k views
How to make Toolbar scroll with content in Fragment?
I have an Activity with DrawerLayout which contains a Fragment containing a RecyclerView. How can I let the ToolBar scroll away on scrolling in the RecyclerView without having to load all items in the ...
3 votes
2 answers
765 views
Android - OnLoadMore in RecyclerView with wrap_content height
I have RecyclerView which its height is set to wrap_content. Now I need to implement OnLoadMore to it but there is a problem. I used, RecyclerView.OnScrollListener.onScrolled(RecyclerView ...
0 votes
0 answers
915 views
How to place a view at the end of a RecyclerView
I want to place a View (and in particular a View Group) at the end of a RecyclerView. My RecyclerView content extends beyond the display height, so I want that after last item appears another View ...