I'm trying to make a widget to show 5 Zelda hearts that would represent the battery. I'm only going to be using 2 images to keep it simple. Basically I want it to show in 20% increments. So when the battery is at 80% it shows 4 full hearts and 1 empty heart, so on and so on for 60%, 40%, etc.
I don't need anything fancy like charging animations, just what is stated above. Can this be done? I attached the 2 images I want to use.
Any help would be appreciated.