A
Android Central Question
I have a battery bar that I want to place the battery percentage on top of. But I want the text color to be the opposite color of the battery bar as it discharges. In other words, when the battery is down to 50% half the text will be the foreground color while the remainder will be in the background color. Any ideas on how to do this? I thought I had seen it done once before but I can't remember where.



