summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Ibrahim Yilmaz <iyz@google.com> 2024-01-12 16:42:05 +0000
committer Ibrahim Yilmaz <iyz@google.com> 2024-02-02 23:56:42 +0000
commit34f2ac94639524ff1a2ec09ae7ef79d18ec2ff3a (patch)
tree9eb6ca4dc8fa4ff37ca25db96c89df5976f0ac16 /libs/androidfw/Util.cpp
parent74f4fa708fe40c0c7b0728e45a168de98038d05d (diff)
Create NotificationOptimizedLinearLayout
This CL introduces a custom LinearLayout class that overrides the onMeasure method. For a specific layout pattern (a LinearLayout, whose width is match_parent, with one weighted child), this custom class will strategically measure unweighted views first and then measure the weighted view with remaining space. This allows it to calculate the correct layout dimensions in a single pass, avoiding the performance overhead of the double measurement Bug: 316110233 Test: presubmit + silver test + screenshot test of Messaging Notifications Flag: ACONFIG notif_linearlayout_optimized DEVELOPMENT Change-Id: I012824cb9cb24c95e5d29d8a3a9f8dde359fef96
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions