How implement sticky footer in recyclerview
I have RecyclerView and I need next behavior: if there are a lot of items (more then fits screen) - footer is last item if few item/no item - footer is located at screen bottom Please advise how can I implement this behavior. Dmitry Korobeinikov You can use RecyclerView.ItemDecoration to implement this behavior. public class StickyFooterItemDecoration extends RecyclerView.ItemDecoration { /** * Top offset to completely hide footer from the screen and therefore avoid noticeable blink during changing position of the footer. */ private static final int OFF_SCREEN_OFFSET = 5000; @Override public