vendredi 2 novembre 2018

getting inverse colors within a block with text

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.


from Android Forums at AndroidCentral.com - Ask a Question https://ift.tt/2QfQ4S7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire