watchface

watch face service data layer api

做~自己de王妃 提交于 2020-01-06 02:44:06
问题 I got a problem with the Google android wear Data Layer Api... I already used it to call handheld activities from a wearable activity and it worked just fine. But now I want call a handheld activity from a watchface service... I created a Google API Client and added wearableApi: public void onCreate(SurfaceHolder holder) { super.onCreate(holder); setWatchFaceStyle(new WatchFaceStyle.Builder(MyWatchFace.this) .setCardPeekMode(WatchFaceStyle.PEEK_MODE_VARIABLE) .setBackgroundVisibility

How set complication on watch face of ICON,RANGED_VALUE,SMALL_IMAGE on android wear

帅比萌擦擦* 提交于 2019-12-13 07:58:05
问题 I tried to draw icon on android watch face but did not see on watch face. I already check this link.Ref I set text on watchface for complication TYPE text but it does not set for other type like ICON,RANGED_VALUE,SMALL_IMAGE so please suggest. I need this type icon where red mark complication. I used this code for draw text. if (COMPLICATION_IDS[i] == RIGHT_DIAL_COMPLICATION) { // RIGHT_DIAL_COMPLICATION calculations int offset = (int) ((mWidth / 2) - textWidth) / 2; complicationsX = (mWidth