1

On my android application, I'm opening recycler view cell (increasing its height with animation).

If I'm opening it just on the top of recycler view - it scrolls top a little and top (offscreen) item is going to recycle and at the bottom of the recycler, the view appears another cell with opened content.

Tested with little smaller height to open - everything works fine.

So the question is, how to say to recycler view to give me a little bit more height on top offscreen before starting the recycling element?

Reza Mousavi
  • 4,420
  • 5
  • 31
  • 48
Vadim
  • 3,855
  • 2
  • 17
  • 22

1 Answers1

1

EDIT

Use a LayoutManager that supports "extra" space. Consult the documentation here

The answer was originally posted here

The following post may also be useful.

tapsey
  • 456
  • 3
  • 14
  • 4
    Whilst this may theoretically answer the question, [it would be preferable](//meta.stackoverflow.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. See [here](https://meta.stackexchange.com/a/94027/285661) for instructions how to write *better* "link-based" answers. Thanks! – GhostCat Oct 26 '18 at 10:51
  • Already solved other problem that makes that problem go away. But for future, that answer can help, thanks – Vadim Oct 26 '18 at 11:43