Add MaximizeMenuView with m3's dynamic color theming
To more easily support theming, this change also: 1) Replaces the maximize button's drawable with a custom StateListDrawable with selector state support, for out-of-the-box theming based on hover, selected, pressed and inactive states without manual motion event tracking. Also disables hardware acceleration on this button except for during animations, to prevent aliasing. 2) Moves toolkit specific logic into MaximizeMenuView, to encapsulate view inflation, binding, animations, etc and to keep it separate from the menu's window management logic Bug: 328668781 Test: maximize menu theming follows app theme, regardless of system theme Change-Id: I8f5866102226d161cbb4d94611df46155747ce75
Loading
Please register or sign in to comment