Hi,
It's possible to use different layouts depends on watch size in the same watch face app? How to select the correct one?
Best regards,
Oriol
Hi,
It's possible to use different layouts depends on watch size in the same watch face app? How to select the correct one?
Best regards,
Oriol
Look at the options here about using relative layouts where the same layout can be used for different devices.
https://forums.garmin.com/developer/connect-iq/b/news-announcements/posts/using-relative-layouts…
TextArea is only for 3.1 devices and above, but using percents in the layout is compiler based and should work on any device: Like the bitmap stuff in 4.0
In Connect IQ 3.1 resource compiler now accepts…
You can put different layouts in different resource folders targeted to your specific device shape/resolution.
https://developer.garmin.com/connect-iq/core-topics/build-configuration/
The family qualifier format allows for resources to target specific device families, which is a group of devices differentiated by shared screen characteristics. There are two family qualifiers:
round, rectangle, etc.)218x218, 148x205, etc.)The screen shape must always be specified when using a family qualifier, and the screen size may be added to further refine the target family. Here are some examples of valid and invalid family qualifier examples:
resources-round: Valid—targets round screen devices, like the fēnix 3 series and fēnix 5 seriesresources-round-218x218: Valid—targets 218px x 218px, round screen screen devices, like the fēnix 3 and fēnix 5S (but not the 5 or 5X since they have 240px x 240px screens)resources-218x218: Invalid—this will be ignored by the resource compiler because no screen shape has been specifiedresources-218x218-round: Invalid—the screen shape was not specified firstLook at the options here about using relative layouts where the same layout can be used for different devices.
Note this only works for Connect IQ 3.1 (and above).
TextArea is only for 3.1 devices and above, but using percents in the layout is compiler based and should work on any device: Like the bitmap stuff in 4.0
In Connect IQ 3.1 resource compiler now accepts percentages for X and Y coordinates
you might want to refer to below thread. You may soon find that having these qualifiers may work initially, but if you wanna save on memory and support more of the older watches, you may hit a memory constraint and start doing things which you won't like.