android / wear-os-samples

Multiple samples showing best practices in app and watch face development on Wear OS.
https://developer.android.com/wear
Apache License 2.0
1.12k stars 572 forks source link

Question - Watchface jetpack #958

Closed hms-douglas closed 11 months ago

hms-douglas commented 11 months ago

How do I move the complication from one position to another??

Documentation says that I can use ComplicationSlotsUserStyleSetting to change "options such as the number of active complication slots, their location, etc..."

But I have no idea on how to do it? And didn't find any examples

Can someone help? Thanks!

squarerootof9 commented 11 months ago

Hi,

java/com/example/android/wearable/alpha/utils/ComplicationUtils.kt

has settings for the constraint bounds at runtime

res/layout/watch_face_and_complications_preview.xml

has the layout for the configuration view where constraints can be adjusted

Hope that helps. I just started looking this over a few days ago.