[Mfill Android] Fix spacing between footer commands and user infos
This CL adds a space below the last UserInfo element and the first non-UserInfo element. Effectively, this means the FooterCommands have the same padding to the UserInfo as UserInfo elements have to each other. Screenshot before: https://photos.app.goo.gl/h3By5RN2zUiDGVLw8 Screenshot after: https://photos.app.goo.gl/MVzu6uirjkkVhnBF9 Alternatives considered: 1. A static top margin for a footer command would not work here since footer commands are not supposed to have paddings between each other. 2. Adding the space relative to the first Footer Command adds a padding between the "No saved passwords" text and the footer commands if no UserInfo is available. Such padding isn't supposed to exist either. 3. Wrapping FooterCommands or UserInfos into a Layout and add the margin to the layout would work but degrades the effectiveness of the RecyclerView which wants to reuse containers. Change-Id: I63e08ab42215f81befb05bd5a26b96d27dc4b908 Reviewed-on: https://chromium-review.googlesource.com/c/1481295Reviewed-by:Ioana Pandele <ioanap@chromium.org> Commit-Queue: Friedrich [CET] <fhorschig@chromium.org> Cr-Commit-Position: refs/heads/master@{#634617}
Showing
Please register or sign in to comment