osa1 / Dextrack

A Garmin watch face with blood glucose monitoring
GNU General Public License v3.0
8 stars 0 forks source link

Question about layout #4

Closed bentonmize closed 1 month ago

bentonmize commented 1 month ago

Sorry, not a real issue, just a question and I'm not sure how else to pose it to you 😄 . I just got a Garmin (long time Fitbit Versa user before the SDKs got canned and you can't do dev on the platform anymore 😞 ), love the fonts and style your watch face has. I've only started a new project, and was wondering why you chose to make the whole screen a Drawable as opposed to using individual layout elements etc. and setting fonts/positioning there? Just a genuine question for someone who's trying to learn. Awesome work!

osa1 commented 1 month ago

Hi @bentonmize.

was wondering why you chose to make the whole screen a Drawable as opposed to using individual layout elements etc. and setting fonts/positioning there?

It just felt easier, because location of the things I draw all depend on the locations of others. For example, (IIRC) the glucose data graph starts below the time, second is drawn right of HHMM text etc. I don't know how else to draw things with positions relative to each other, other than drawing all of them in the same drawable.

I'm a noob when it comes to Garmin apps so it's possible that I'm doing it wrong. If you know a better way let me know 😄