I’m trying to build a step counter similar to the one in the stock Digital Dashboard. Specifically, I have a curved progress bar and text box with the step count. The text box moves based on the percentage of the step goal completed.
The issue is that I can’t figure out how to keep the step count within the confines of the progress bar.
I set up my curved text box as follows:
step target is 7000 (or anything less than 10,000)
left justify text
rotation is controlled by the step counter target % - ([SC_PER]/100)*72
I chose to limit the rotation to 72 because when the steps are 7000, the count will still remain with the confines of the progress bar. But as soon as I hit 10,000, it goes beyond. I tried playing with the justification, but that creates a similar problem when the step count is low.
Is there a way to change the justification based on the value of the step goal?
@ruth008, Welcome and thank you for stepping in to help out the WFS community! You are obviously using Android Studio or something other than Watch Face Studio to write your watch faces since there is no place (at least none I have found yet) in WFS to write any Java code of our own. Is there a way for @Watchmen to do this with WFS tag expressions?
Hello, what about aligning the text to the right and correcting the position in the beginning with rotation formula like this:
I also attached the example. Unzip the .wfs file from inside the archive and check it in WFS
(I decided not to change the file extension as usually, because some people can’t even see it with basic windows settings and get confused) StepsExample.zip (168.2 KB)