commit | ded80076dbff226a3890d367ddbcb14417bcad9a | [log] [tgz] |
---|---|---|
author | Stevie Kideckel <kideckel@google.com> | Mon Jun 21 14:47:04 2021 +0000 |
committer | Stevie Kideckel <kideckel@google.com> | Mon Jun 21 15:11:33 2021 +0000 |
tree | 71d6cb0859aa0399fe92cd3248cbe525c5df042e | |
parent | 61bc5c6c93e7bd3370fbf21912ed128c9e05f7ba [diff] |
Add spacing between items as decorations instead of margins There are bugs in the accounting for the margins if we manipulate the view directly, causing the wrong top to be reported and the view to be shifted when we call scrollToPosition. Item decorations ensure that the layout system for the recycler view always has the right details about the spacing. Fix: 191642682 Test: verified locally Change-Id: Ie80563757079e885c8178883ab16e314d01c5b32