OSDN Git Service

Fixed layout of quick_settings_header_info
authorFabian Kozynski <kozynski@google.com>
Fri, 17 May 2019 18:06:38 +0000 (14:06 -0400)
committerFabian Kozynski <kozynski@google.com>
Mon, 20 May 2019 16:35:28 +0000 (12:35 -0400)
commitceb057b6ed3f368d3dc52f5bbfebe199f9f7a925
tree303f43d53a5f3ad736ca07d674ab09c77350c93a
parentd7affe71710d08ae738c353411571a60c56e6172
Fixed layout of quick_settings_header_info

The layout now allocates as much as it needs to QSCarrierGroup, and then
allocates leftover space to the status info Views.

The containing View (QSHeaderInfoLayout) splits the width between both
status (if both are visible) by allocating as much as they need. If the
total amount needed is more than what is available, it splits equally
unless a view requires less than half.

Test: Visual, using multiple Display sizes and Font sizes and Japanese
language (for some long strings)
Fixes: 132742416

Change-Id: I9f8ce68fa25fbe7d00451e59503575a07c3fd5f4
packages/SystemUI/res/layout/quick_settings_header_info.xml
packages/SystemUI/src/com/android/systemui/qs/QSHeaderInfoLayout.kt [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/qs/QuickStatusBarHeader.java