Hi, how do I make sure that the current day of the week is displayed in an ellipse?
Has anyone handled something like this?
Thank you.
Hi, how do I make sure that the current day of the week is displayed in an ellipse?
Has anyone handled something like this?
Thank you.
Hi - Have you seen the example apps? You're probably better off going back to basics and taking one of those and iterating on making something that works.
The problem you're looking to solve isn't that hard, but without a firm understanding you'll keep getting stuck.
If you have a specific problem that you're trying to solve, paste your code here and I'll try to help
Will all the days fit on the screen at once? Is that what you want?
If so, you have code that draws one. To draw another, take one day off the date and draw the same (without the ellipse) with different x and y coordinates. Keep going until you get to the day you consider the first day of the week. Do the same in the other direction as well until you get to the last day.
I'm not sure what you mean by 'everywhere it should be'. Do you mean to draw all the days. To do that keep adding 20 pixels (or whatever you like) to the y coordinate as you draw.
I can't write a watch face for you, but happy to help where you're stuck.
Paste what you've tried and I'll try to help.
If you don't even know where to start, please look at the garmin example code and play with those a little to get an idea of how it all works.
it would only help me if I knew how to draw all the days of the week and how to position the ellipse so that it scrolls across the display as the days of the week. only this is what I would need from you and it will be enough for me. please sample code.
Edit:
If you can't do that, thank you for your help anyway
Hi,
I answered quickly yesterday.
But yes, basically I thought that all days of the week should be displayed on watchFace and that only the ellipse would move according to the day. I don't know much about this, because I can't display all the days and position the ellipse so that it is different (x, y) every day. I would be grateful for your help and I could go on.
Thanks for the sample code.
You caught me on holiday. I have attached a working example watchface.https://www.dropbox.com/s/gm7744altroc5gb/ExampleDaysOfWeek.zip?dl=0
If you run this, it will draw all the days of the week down the screen and highlight the current day. All the code is annotated.
It is based on the default watchface example that loads when you create a new project. The layout.xml and drawables are still there but not required. They can be deleted
David