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
6 files changed