SystemUI: Add VectorDrawable battery styles
The current implementation of BatteryMeterView uses arrays of points that are drawn programmatically. This limits the ability to overlay or theme the battery. By utilizing VectorDrawables and AnimatedVectorDrawables we can achieve the same look and feel of stock while allowing for more unique battery meters. Implement portrait, landscape and circle AVD battery styles. The various dimensions adjustments are to accommodate the slightly different sizes of the AVD battery styles. Forward port the AVD battery commits from CM 13.0: db5cf5dc SysUI: Use VectorDrawable's for rendering battery d37a5aa5 SysUI: Fix coloring of frame and bolt 2b21b18e SysUI: Use linear interpolator for battery level 5953be01 SysUI: Allow styling of battery text/charge blend mode e3ddac3a SysUI: Adjust battery dimensions for better look 1530ec9e SystemUI: Set circle battery path as untranslatable Change-Id: I91b4f5229774c979a7aa9ab771ffcb95ceb71b84
Loading
Please register or sign in to comment