U
U
user 81282015-11-24 18:34:20
Android
user 8128, 2015-11-24 18:34:20

How to implement footer in RecyclerView?

Hello!
Please tell me how to implement a footer with this behavior:

  • If the whole screen is filled with list items - footer last
  • If there are no elements / elements do not fill the entire screen - footer is at the bottom of the screen

Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bracadabra, 2015-12-03
@bracadabra

Hello, the first thing that comes to mind is adding an empty element with height = screen height - footer height - height of all other elements, or with the help of indentation, but even here everything rests on the calculation of height.

S
Stanislav, 2015-12-03
@lamo4ok

Try to do according to this instruction, written in it - a working version. First, laying out an empty blank with your structure on it, and then using it already in a working draft, if there is one, everything will surely work out.
zaurmag.ru/priemy-verstki-html-css/kak-prizhat-foo...

U
user 8128, 2015-12-03
@ErvinM

I already implemented this thing, but did not have time to formalize in order to share with the rest.
In a nutshell:
I'll show you the code one of these days.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question