Fix snackbar layout for tablet
Snackbar layout is a RelativeLayout with top, left and right shadow views and Linear layout with content. Because left and right shadows' bottoms are not anchored to anything RelativeLayout allows them to grow to maximum height. This causes snackbar to push to the top of the screen. Anchoring bottoms of side shadows to the bottom of content view forces RelativeLayout to set their heights explicitly to the height of top shadow and content, instead of letting shadow views expand to full height. BUG=1035954 R=mdjones@chromium.org Change-Id: I39be9b8db5136fb726ae9cdec5dc5df24823a5c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1977824 Commit-Queue: Pavel Yatsuk <pavely@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#727606}
Showing
Please register or sign in to comment