10-23-2018 12:26
10-23-2018 12:26
I am trying to create a clock face for my wife, and have pretty much everything that I need on it. I was able to get the background image to show up, but can't get the icons for steps, heart rate, etc to show. Does anyone have examples of the files that need to be edited (and how) in order for the icons to show up over the background image? Sorry if this is an obvious answer. I am completely new to all of this.
Best Answer10-24-2018 11:15
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
10-24-2018 11:15
Put the images into the resources folder. e.g /resources/image1.png
Then in your index.gui file you use the image:
<image href="image1.png" x="0" y="0" width="100" height="100" />
The order of elements in the index.gui matters, so if you want this image to appear above the background image, it must be added to the file after the background image. Like this:
<svg>
<image href="background.png" x="0" y="0" width="100%" height="100%" />
<image href="image1.png" x="0" y="0" width="100" height="100" />
</svg>
06-20-2021 09:28
06-20-2021 09:28
I am trying to add more than 1 icon but only the one that is coded first shows up. How do I fix this?
code:
<svg class="background">
<text id="timeLabel" />
<image href="heartRateIcon.png" x="75" y="100" width="30" height="30" />
<text id="heartRateLabel" />
<image href="batteryIcon.png" x="75" y="25" width="30" height="30" />
<text id="batteryLabel" />
</svg>
Best Answer06-21-2021 06:40
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
06-21-2021 06:40
This looks fine. Did you put the image file in your resources folder? Is the image actually 30x30? The device won't resize big images due to lack of memory.
06-21-2021 17:06
06-21-2021 17:06
Thanks, resizing the image worked. But when I use a white image, it just makes it black.
Best Answer06-21-2021 17:10
06-21-2021 17:10
Image: https://imgur.com/a/TmHrm6g
Actual icon: https://imgur.com/a/bZg6Z9W
Best Answer06-21-2021 17:11
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
06-21-2021 17:11
Ensure you're using rgb (24-bit) images, rather than greyscale (8-bit).
Best Answer06-21-2021 17:12
06-21-2021 17:12
Ok, Thanks for the answer!
12-27-2021 20:29
12-27-2021 20:29
How is the background image done?
Best Answer12-28-2021 10:22
Fitbit Product Experts Alumni are retired members of the Fitbit Product Expert Program. Learn more
12-28-2021 10:22
@Ineedhelp_ see - Solved: SVG background image
Author | ch, passion for improvement.
Best Answer