I am developing an app where I add a bunch of elements in my companion app using the
<AdditiveList>and I would like to dynamically generate an horizontal scroll for each element in the watch app (pretty much the same as the weather app, for each city you add in your companion app, the watch will add a new city to scroll in the watch).
So far, I was able to find the "scrollview", which scrolls vertically... is there a hidden component for the horizontal scroll such as the one used in the weather app? or is that built manually?
Also, how can add scrollview-item dynamically? What I have in my index.gui is this:
<svg>
<use href="#scrollview">
<use href="#scrollview-item">
<text class="name">Elem 1</text>
<text class="text">Text 1</text>
</use>
</use>
</svg>
But I'm not sure how to dynamically add more #scrollview-item elements at the end according to the number of items I have...
Answered! Go to the Best Answer.
Until the documentation gets published, have a look at https://community.fitbit.com/t5/SDK-Development/Add-Panorama-Component/m-p/2483691
Best Answer
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.
Until the documentation gets published, have a look at https://community.fitbit.com/t5/SDK-Development/Add-Panorama-Component/m-p/2483691
Best Answer