openvehicles / Open-Vehicle-Android

Android App for OVMS
Other
55 stars 45 forks source link

image: Add battery charging animation #151

Open kallisti5 opened 1 year ago

kallisti5 commented 1 year ago

Need to work on animating this... but it offers a lot better visual feedback on a charging vehicle. c0 - c4 should be played on a loop while charging and should repeat seamlessly

kallisti5 commented 1 year ago

aand i just realized battery_100 isn't mentioned anywhere. The battery_overlay is stacked somehow.. isn't it?

dexterbg commented 1 year ago

Yes, the overlay is the 9-patch image battery_overlay_t assigned to view tabInfoImageBatteryOverlay. The center slice is scaled by the SOC via InfoFragment.updateCarInfoView().

Not sure about how to animate a 9-patch, maybe that's then better solved via vector graphics.