VR: Allow linear layout to target a specified size
In most cases, linear layouts expand to contain all children. However, in some cases, we want elements to fit into a specified space. In this case, one element can now be tagged as allowing sizing by its parent, and LinearLayout can be configured to adjust that size according to the other elements it needs to fit. The first concrete example of this is a URL bar, where the text field consumes all remaining space after any icons or indicators are added. BUG=806886 Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_vr;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Change-Id: Ib9261c3b882f248aec2269a660cad9e9c6d8bbbf Reviewed-on: https://chromium-review.googlesource.com/962712 Commit-Queue: Christopher Grant <cjgrant@chromium.org> Reviewed-by:Ian Vollick <vollick@chromium.org> Cr-Commit-Position: refs/heads/master@{#543144}
Showing
Please register or sign in to comment