saket / InboxRecyclerView

Build expandable descendant navigation, inspired by Google Inbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blank spaces between items when collapsed

charlie-niekirk opened this issue · comments

I'm now getting this issue where blank spaces appear on some recyclerview items and overlap eachother, it happens the first time you open and then close an expandable item. Subsequent opening/closing of items seems to fix the issue (except for the first item). From what it looks like, the viewbounds of the items are being changed so that there is blank space being drawn above their original bounds (which overlays the items above).

I'll try get a recording for you.

I've figured out what the issue was. In my ConstraintLayout I was positioning the InboxRecyclerView below my Toolbar using constraints instead of applying padding to the top of my InboxRecyclerView. Using padding instead of literally displaying the InboxRecyclerView below the Toolbar solves the issue.