Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Android Widgets: previews for the picker

Claude46f2849d90b5
diff --git a/android/app/src/main/res/drawable/widget_preview_image_alert.xml b/android/app/src/main/res/drawable/widget_preview_image_alert.xml
new file mode 100644
index 00000000..20540393
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_alert.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_attention" />
+ <item
+ android:width="84dp"
+ android:height="84dp"
+ android:left="0dp"
+ android:top="0dp"
+ android:gravity="center"
+ android:drawable="@drawable/preview_mochi_waiting" />
+</layer-list>
diff --git a/android/app/src/main/res/drawable/widget_preview_image_big.xml b/android/app/src/main/res/drawable/widget_preview_image_big.xml
new file mode 100644
index 00000000..e2acd65b
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_big.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_working" />
+ <item
+ android:width="170dp"
+ android:height="170dp"
+ android:left="0dp"
+ android:top="10dp"
+ android:gravity="center"
+ android:drawable="@drawable/preview_mochi_working" />
+</layer-list>
diff --git a/android/app/src/main/res/drawable/widget_preview_image_list.xml b/android/app/src/main/res/drawable/widget_preview_image_list.xml
new file mode 100644
index 00000000..56460bc5
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_list.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_attention" />
+ <item
+ android:width="44dp"
+ android:height="44dp"
+ android:left="16dp"
+ android:top="38dp"
+ android:gravity="start|top"
+ android:drawable="@drawable/preview_face_waiting" />
+ <item
+ android:width="44dp"
+ android:height="44dp"
+ android:left="16dp"
+ android:top="86dp"
+ android:gravity="start|top"
+ android:drawable="@drawable/preview_face_working" />
+ <item
+ android:width="44dp"
+ android:height="44dp"
+ android:left="16dp"
+ android:top="134dp"
+ android:gravity="start|top"
+ android:drawable="@drawable/preview_face_done" />
+</layer-list>
diff --git a/android/app/src/main/res/drawable/widget_preview_image_mood.xml b/android/app/src/main/res/drawable/widget_preview_image_mood.xml
new file mode 100644
index 00000000..dea5c2a5
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_mood.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_done" />
+ <item
+ android:width="30dp"
+ android:height="30dp"
+ android:left="0dp"
+ android:top="0dp"
+ android:gravity="center"
+ android:drawable="@drawable/preview_mochi_done" />
+</layer-list>
diff --git a/android/app/src/main/res/drawable/widget_preview_image_pill.xml b/android/app/src/main/res/drawable/widget_preview_image_pill.xml
new file mode 100644
index 00000000..eaf9d610
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_pill.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_working" />
+ <item
+ android:width="32dp"
+ android:height="32dp"
+ android:left="16dp"
+ android:top="0dp"
+ android:gravity="start|center_vertical"
+ android:drawable="@drawable/preview_face_working" />
+</layer-list>
diff --git a/android/app/src/main/res/drawable/widget_preview_image_ring.xml b/android/app/src/main/res/drawable/widget_preview_image_ring.xml
new file mode 100644
index 00000000..4d5b0dd4
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_ring.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_attention" />
+ <item
+ android:width="76dp"
+ android:height="76dp"
+ android:left="0dp"
+ android:top="0dp"
+ android:gravity="center"
+ android:drawable="@drawable/preview_ring_70" />
+</layer-list>
diff --git a/android/app/src/main/res/drawable/widget_preview_image_solo.xml b/android/app/src/main/res/drawable/widget_preview_image_solo.xml
new file mode 100644
index 00000000..20540393
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_solo.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_attention" />
+ <item
+ android:width="84dp"
+ android:height="84dp"
+ android:left="0dp"
+ android:top="0dp"
+ android:gravity="center"
+ android:drawable="@drawable/preview_mochi_waiting" />
+</layer-list>
diff --git a/android/app/src/main/res/drawable/widget_preview_image_today.xml b/android/app/src/main/res/drawable/widget_preview_image_today.xml
new file mode 100644
index 00000000..5bad248a
--- /dev/null
+++ b/android/app/src/main/res/drawable/widget_preview_image_today.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The picture the Widget picker shows on Android 11 (no previewLayout there): the card, its gradient and Mochi in the state of the sample. -->
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:drawable="@drawable/widget_card" />
+ <item
+ android:left="1dp"
+ android:top="1dp"
+ android:right="1dp"
+ android:bottom="1dp"
+ android:drawable="@drawable/widget_tint_done" />
+ <item
+ android:width="84dp"
+ android:height="84dp"
+ android:left="0dp"
+ android:top="0dp"
+ android:gravity="center"
+ android:drawable="@drawable/preview_mochi_done" />
+</layer-list>
diff --git a/android/app/src/main/res/layout/widget_alert.xml b/android/app/src/main/res/layout/widget_alert.xml
index b9f922c6..a757492e 100644
--- a/android/app/src/main/res/layout/widget_alert.xml
+++ b/android/app/src/main/res/layout/widget_alert.xml
@@ -22,6 +22,7 @@
<ImageView
android:id="@+id/alert_face"
+ android:src="@drawable/preview_mochi_idle"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
@@ -36,12 +37,13 @@
android:gravity="center"
android:maxLines="1"
android:textColor="@color/widget_tone_attention"
- android:textSize="24sp"
+ android:textSize="20sp"
android:textStyle="bold"
android:visibility="gone" />
<TextView
android:id="@+id/alert_calm"
+ android:text="@string/widget_initial_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
@@ -53,6 +55,7 @@
<TextView
android:id="@+id/alert_sub"
+ android:text="@string/widget_initial_line"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
diff --git a/android/app/src/main/res/layout/widget_big.xml b/android/app/src/main/res/layout/widget_big.xml
index 57abc203..779829e7 100644
--- a/android/app/src/main/res/layout/widget_big.xml
+++ b/android/app/src/main/res/layout/widget_big.xml
@@ -22,6 +22,7 @@
<TextView
android:id="@+id/big_bubble"
+ android:text="@string/widget_initial_line"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/widget_bubble"
@@ -44,6 +45,7 @@
<ImageView
android:id="@+id/big_mochi"
+ android:src="@drawable/preview_mochi_idle"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
@@ -52,6 +54,7 @@
<LinearLayout
android:id="@+id/big_row"
+ android:visibility="gone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
@@ -59,6 +62,7 @@
<ImageView
android:id="@+id/big_dot"
+ android:tint="@color/widget_tone_muted"
android:layout_width="@dimen/widget_dot"
android:layout_height="@dimen/widget_dot"
android:importantForAccessibility="no"
diff --git a/android/app/src/main/res/layout/widget_list.xml b/android/app/src/main/res/layout/widget_list.xml
index 66f8433a..3e4810b8 100644
--- a/android/app/src/main/res/layout/widget_list.xml
+++ b/android/app/src/main/res/layout/widget_list.xml
@@ -25,6 +25,7 @@
<LinearLayout
android:id="@+id/list_header"
+ android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="28dp"
android:gravity="center_vertical"
@@ -67,6 +68,7 @@
<LinearLayout
android:id="@+id/list_rows"
+ android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
@@ -367,11 +369,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
- android:orientation="vertical"
- android:visibility="gone">
+ android:orientation="vertical">
<ImageView
android:id="@+id/list_empty_face"
+ android:src="@drawable/preview_mochi_idle"
android:contentDescription="@string/widget_list_label"
android:layout_width="match_parent"
android:layout_height="0dp"
@@ -386,13 +388,15 @@
<ImageView
android:id="@+id/list_empty_icon"
+ android:tint="@color/widget_tone_muted"
android:layout_width="@dimen/widget_icon"
android:layout_height="@dimen/widget_icon"
android:importantForAccessibility="no"
- android:src="@drawable/ic_widget_offline" />
+ android:src="@drawable/widget_dot" />
<TextView
android:id="@+id/list_empty_title"
+ android:text="@string/widget_initial_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
@@ -405,6 +409,7 @@
<TextView
android:id="@+id/list_empty_line"
+ android:text="@string/widget_initial_line"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
diff --git a/android/app/src/main/res/layout/widget_mood.xml b/android/app/src/main/res/layout/widget_mood.xml
index 85359e64..4d010c01 100644
--- a/android/app/src/main/res/layout/widget_mood.xml
+++ b/android/app/src/main/res/layout/widget_mood.xml
@@ -15,6 +15,7 @@
<ImageView
android:id="@+id/mood_face"
+ android:src="@drawable/preview_mochi_idle"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/widget_mood_label"
diff --git a/android/app/src/main/res/layout/widget_pill.xml b/android/app/src/main/res/layout/widget_pill.xml
index 6f45aebb..ce9b895c 100644
--- a/android/app/src/main/res/layout/widget_pill.xml
+++ b/android/app/src/main/res/layout/widget_pill.xml
@@ -23,6 +23,7 @@
<ImageView
android:id="@+id/pill_dot"
+ android:tint="@color/widget_tone_muted"
android:layout_width="@dimen/widget_dot"
android:layout_height="@dimen/widget_dot"
android:importantForAccessibility="no"
@@ -30,6 +31,7 @@
<TextView
android:id="@+id/pill_name"
+ android:text="@string/widget_initial_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
@@ -41,6 +43,7 @@
<TextView
android:id="@+id/pill_state"
+ android:text="@string/widget_initial_line"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
diff --git a/android/app/src/main/res/layout/widget_preview_alert.xml b/android/app/src/main/res/layout/widget_preview_alert.xml
new file mode 100644
index 00000000..53d7323b
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_alert.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of Waiting Alert: Mochi with a "!" and a bright orange "2 waiting" on the orange-bordered card.
+ A still picture for the Widget picker (android:previewLayout): sample text, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card_attention">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_attention" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:padding="10dp">
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_mochi_waiting" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:gravity="center"
+ android:maxLines="1"
+ android:text="@string/widget_sample_two_waiting"
+ android:textColor="@color/widget_tone_attention"
+ android:textSize="20sp"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:gravity="center"
+ android:maxLines="1"
+ android:text="@string/widget_sample_claude"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state" />
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_preview_big.xml b/android/app/src/main/res/layout/widget_preview_big.xml
new file mode 100644
index 00000000..e0a1e8c6
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_big.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of Mochi Big: a large working Mochi with a speech bubble.
+ A still picture for the Widget picker (android:previewLayout): sample text and numbers, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_working" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_horizontal"
+ android:orientation="vertical"
+ android:padding="14dp">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@drawable/widget_bubble"
+ android:ellipsize="end"
+ android:gravity="center"
+ android:maxLines="2"
+ android:paddingStart="16dp"
+ android:paddingTop="10dp"
+ android:paddingEnd="16dp"
+ android:paddingBottom="10dp"
+ android:text="@string/widget_sample_bubble"
+ android:textColor="@color/widget_bubble_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold" />
+
+ <ImageView
+ android:layout_width="20dp"
+ android:layout_height="10dp"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_bubble_tail" />
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_mochi_working" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="@dimen/widget_dot"
+ android:layout_height="@dimen/widget_dot"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_dot"
+ android:tint="@color/widget_tone_working" />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_claude"
+ android:textColor="@color/widget_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold"
+ android:layout_marginStart="8dp" />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_working"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state"
+ android:layout_marginStart="8dp" />
+ </LinearLayout>
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_preview_list.xml b/android/app/src/main/res/layout/widget_preview_list.xml
new file mode 100644
index 00000000..f2737b97
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_list.xml
@@ -0,0 +1,242 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of List: "Waiting for you" with an orange 1 badge, then Claude Code (waiting), Codex (working) and Gemini CLI (finished).
+ A still picture for the Widget picker (android:previewLayout): sample text and numbers, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_attention" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:paddingStart="14dp"
+ android:paddingTop="10dp"
+ android:paddingEnd="14dp"
+ android:paddingBottom="10dp">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="28dp"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="@dimen/widget_dot"
+ android:layout_height="@dimen/widget_dot"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_dot"
+ android:tint="@color/widget_tone_attention" />
+
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_header"
+ android:textColor="@color/widget_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dp"
+ android:background="@drawable/widget_badge_bg"
+ android:gravity="center"
+ android:minWidth="22dp"
+ android:paddingStart="6dp"
+ android:paddingEnd="6dp"
+ android:text="@string/widget_sample_one"
+ android:textColor="#FF1C1C1E"
+ android:textSize="@dimen/widget_text_secondary"
+ android:textStyle="bold" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:gravity="center_vertical"
+ android:minHeight="@dimen/widget_row_min"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="3dp"
+ android:layout_height="28dp"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_stripe"
+ android:tint="@color/widget_tone_attention" />
+
+ <ImageView
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:layout_marginStart="8dp"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_face_waiting" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_claude"
+ android:textColor="@color/widget_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_approval"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state" />
+ </LinearLayout>
+
+ <ImageView
+ android:layout_width="@dimen/widget_dot"
+ android:layout_height="@dimen/widget_dot"
+ android:layout_marginStart="8dp"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_dot"
+ android:tint="@color/widget_tone_attention" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:gravity="center_vertical"
+ android:minHeight="@dimen/widget_row_min"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="3dp"
+ android:layout_height="28dp"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_stripe"
+ android:tint="@color/widget_tone_working" />
+
+ <ImageView
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:layout_marginStart="8dp"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_face_working" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_codex"
+ android:textColor="@color/widget_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_working"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state" />
+ </LinearLayout>
+
+ <ImageView
+ android:layout_width="@dimen/widget_dot"
+ android:layout_height="@dimen/widget_dot"
+ android:layout_marginStart="8dp"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_dot"
+ android:tint="@color/widget_tone_working" />
+ </LinearLayout>
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:gravity="center_vertical"
+ android:minHeight="@dimen/widget_row_min"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="3dp"
+ android:layout_height="28dp"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_stripe"
+ android:tint="@color/widget_tone_done" />
+
+ <ImageView
+ android:layout_width="36dp"
+ android:layout_height="36dp"
+ android:layout_marginStart="8dp"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_face_done" />
+
+ <LinearLayout
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="10dp"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_gemini"
+ android:textColor="@color/widget_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_finished"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state" />
+ </LinearLayout>
+
+ <ImageView
+ android:layout_width="@dimen/widget_dot"
+ android:layout_height="@dimen/widget_dot"
+ android:layout_marginStart="8dp"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_dot"
+ android:tint="@color/widget_tone_done" />
+ </LinearLayout>
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_preview_mood.xml b/android/app/src/main/res/layout/widget_preview_mood.xml
new file mode 100644
index 00000000..7c757b20
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_mood.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of Mochi Mood: his happy face with a green glow.
+ A still picture for the Widget picker (android:previewLayout): sample text and numbers, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_done" />
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:importantForAccessibility="no"
+ android:padding="4dp"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_mochi_done" />
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_preview_pill.xml b/android/app/src/main/res/layout/widget_preview_pill.xml
new file mode 100644
index 00000000..602d9244
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_pill.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of Status Pill: a blue dot, Claude Code, Working.
+ A still picture for the Widget picker (android:previewLayout): sample text and numbers, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_working" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ android:paddingStart="18dp"
+ android:paddingEnd="18dp">
+
+ <ImageView
+ android:layout_width="@dimen/widget_dot"
+ android:layout_height="@dimen/widget_dot"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_dot"
+ android:tint="@color/widget_tone_working" />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_claude"
+ android:textColor="@color/widget_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold"
+ android:layout_marginStart="10dp" />
+ <TextView
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:gravity="end"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_working"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state"
+ android:layout_marginStart="10dp" />
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_preview_ring.xml b/android/app/src/main/res/layout/widget_preview_ring.xml
new file mode 100644
index 00000000..8339d2d3
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_ring.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of Usage Ring: a ring at about 70 percent with its label.
+ A still picture for the Widget picker (android:previewLayout): sample text and numbers, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_attention" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:padding="10dp">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1">
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_ring_70" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:maxLines="1"
+ android:text="@string/widget_sample_ring_pct"
+ android:textColor="@color/widget_text"
+ android:textSize="24sp"
+ android:textStyle="bold" />
+ </FrameLayout>
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:gravity="center"
+ android:maxLines="1"
+ android:text="@string/widget_sample_ring_label"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state" />
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_preview_solo.xml b/android/app/src/main/res/layout/widget_preview_solo.xml
new file mode 100644
index 00000000..057df344
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_solo.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of Solo: Claude Code waiting for your approval, an orange glow and a "1" badge.
+ A still picture for the Widget picker (android:previewLayout): sample text and numbers, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_attention" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_horizontal"
+ android:orientation="vertical"
+ android:padding="10dp">
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_mochi_waiting" />
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
+
+ <ImageView
+ android:layout_width="@dimen/widget_dot"
+ android:layout_height="@dimen/widget_dot"
+ android:importantForAccessibility="no"
+ android:src="@drawable/widget_dot"
+ android:tint="@color/widget_tone_attention" />
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:text="@string/widget_sample_claude"
+ android:textColor="@color/widget_text"
+ android:textSize="@dimen/widget_text_name"
+ android:textStyle="bold"
+ android:layout_marginStart="6dp" />
+ </LinearLayout>
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:gravity="center"
+ android:maxLines="2"
+ android:text="@string/widget_sample_approval"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state" />
+ </LinearLayout>
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="top|end"
+ android:layout_margin="10dp"
+ android:background="@drawable/widget_badge_bg"
+ android:gravity="center"
+ android:minWidth="22dp"
+ android:paddingStart="6dp"
+ android:paddingEnd="6dp"
+ android:text="@string/widget_sample_one"
+ android:textColor="#FF1C1C1E"
+ android:textSize="@dimen/widget_text_secondary"
+ android:textStyle="bold" />
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_preview_today.xml b/android/app/src/main/res/layout/widget_preview_today.xml
new file mode 100644
index 00000000..958646ca
--- /dev/null
+++ b/android/app/src/main/res/layout/widget_preview_today.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Preview of Today: 5 tasks finished today, with a happy Mochi.
+ A still picture for the Widget picker (android:previewLayout): sample text and numbers, no ids, nothing from the app, no runtime bitmap.
+ It uses the same card, border, gradient, type scale and state colours as the real Widget, so the picker shows what you will get. -->
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/widget_card">
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:background="@drawable/widget_tint_done" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:padding="10dp">
+
+ <ImageView
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:importantForAccessibility="no"
+ android:scaleType="fitCenter"
+ android:src="@drawable/preview_mochi_done" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:maxLines="1"
+ android:text="@string/widget_sample_today"
+ android:textColor="@color/widget_text"
+ android:textSize="34sp"
+ android:textStyle="bold" />
+
+ <TextView
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:maxLines="1"
+ android:text="@string/widget_today_unit"
+ android:textColor="@color/widget_text_secondary"
+ android:textSize="@dimen/widget_text_state" />
+ </LinearLayout>
+</FrameLayout>
diff --git a/android/app/src/main/res/layout/widget_ring.xml b/android/app/src/main/res/layout/widget_ring.xml
index 45d2cede..4dbae5f0 100644
--- a/android/app/src/main/res/layout/widget_ring.xml
+++ b/android/app/src/main/res/layout/widget_ring.xml
@@ -22,6 +22,7 @@
<FrameLayout
android:id="@+id/ring_area"
+ android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
@@ -46,6 +47,7 @@
<TextView
android:id="@+id/ring_label"
+ android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
@@ -59,18 +61,18 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
- android:orientation="vertical"
- android:visibility="gone">
+ android:orientation="vertical">
<ImageView
android:id="@+id/ring_off_icon"
- android:layout_width="28dp"
- android:layout_height="28dp"
+ android:layout_width="44dp"
+ android:layout_height="44dp"
android:importantForAccessibility="no"
- android:src="@drawable/ic_widget_offline" />
+ android:src="@drawable/preview_face_idle" />
<TextView
android:id="@+id/ring_off_text"
+ android:text="@string/widget_initial_line"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="6dp"
diff --git a/android/app/src/main/res/layout/widget_solo.xml b/android/app/src/main/res/layout/widget_solo.xml
index 6f72551f..be8d9c99 100644
--- a/android/app/src/main/res/layout/widget_solo.xml
+++ b/android/app/src/main/res/layout/widget_solo.xml
@@ -23,6 +23,7 @@
<ImageView
android:id="@+id/solo_mochi"
+ android:src="@drawable/preview_mochi_idle"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
@@ -38,6 +39,7 @@
<ImageView
android:id="@+id/solo_dot"
+ android:tint="@color/widget_tone_muted"
android:layout_width="@dimen/widget_dot"
android:layout_height="@dimen/widget_dot"
android:importantForAccessibility="no"
@@ -45,6 +47,7 @@
<TextView
android:id="@+id/solo_name"
+ android:text="@string/widget_initial_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
@@ -84,6 +87,7 @@
<TextView
android:id="@+id/solo_state"
+ android:text="@string/widget_initial_line"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
diff --git a/android/app/src/main/res/layout/widget_today.xml b/android/app/src/main/res/layout/widget_today.xml
index de3d0c2d..b7ba0ed6 100644
--- a/android/app/src/main/res/layout/widget_today.xml
+++ b/android/app/src/main/res/layout/widget_today.xml
@@ -22,6 +22,7 @@
<ImageView
android:id="@+id/today_face"
+ android:src="@drawable/preview_mochi_idle"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
@@ -30,6 +31,7 @@
<TextView
android:id="@+id/today_count"
+ android:text="@string/widget_initial_count"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
index 8e9fb273..b2b86f58 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -34,6 +34,22 @@
<string name="widget_ring_cd">%1$s plan usage, %2$d percent used</string>
<string name="widget_today_cd">%1$d agent tasks finished today</string>
<string name="widget_pill_cd">%1$s, %2$s</string>
+ <string name="widget_initial_title">Coucou</string>
+ <string name="widget_initial_line">Waiting for your agents</string>
+ <string name="widget_initial_count">0</string>
+ <string name="widget_sample_claude">Claude Code</string>
+ <string name="widget_sample_codex">Codex</string>
+ <string name="widget_sample_gemini">Gemini CLI</string>
+ <string name="widget_sample_approval">Waiting for your approval</string>
+ <string name="widget_sample_working">Working</string>
+ <string name="widget_sample_finished">Finished</string>
+ <string name="widget_sample_header">Waiting for you</string>
+ <string name="widget_sample_one">1</string>
+ <string name="widget_sample_two_waiting">2 waiting</string>
+ <string name="widget_sample_bubble">Claude Code is working</string>
+ <string name="widget_sample_ring_pct">70%</string>
+ <string name="widget_sample_ring_label">Claude · 5 h</string>
+ <string name="widget_sample_today">5</string>
<string name="status_connected">Connected</string>
<string name="status_connecting">Connecting…</string>
<string name="status_not_connected">Not connected</string>
diff --git a/android/app/src/main/res/xml/coucou_alert_widget_info.xml b/android/app/src/main/res/xml/coucou_alert_widget_info.xml
index 9e8477f8..f3a80958 100644
--- a/android/app/src/main/res/xml/coucou_alert_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_alert_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="110dp"
android:minHeight="110dp"
android:targetCellWidth="2"
@@ -10,4 +12,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_alert"
+ android:previewImage="@drawable/widget_preview_image_alert"
+ android:previewLayout="@layout/widget_preview_alert"
android:description="@string/widget_alert_description" />
diff --git a/android/app/src/main/res/xml/coucou_big_widget_info.xml b/android/app/src/main/res/xml/coucou_big_widget_info.xml
index 9959baff..640c4d63 100644
--- a/android/app/src/main/res/xml/coucou_big_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_big_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="250dp"
android:minHeight="250dp"
android:targetCellWidth="4"
@@ -10,4 +12,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_big"
+ android:previewImage="@drawable/widget_preview_image_big"
+ android:previewLayout="@layout/widget_preview_big"
android:description="@string/widget_big_description" />
diff --git a/android/app/src/main/res/xml/coucou_list_widget_info.xml b/android/app/src/main/res/xml/coucou_list_widget_info.xml
index 64592f6d..56286122 100644
--- a/android/app/src/main/res/xml/coucou_list_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_list_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="250dp"
android:minHeight="192dp"
android:targetCellWidth="4"
@@ -10,4 +12,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_list"
+ android:previewImage="@drawable/widget_preview_image_list"
+ android:previewLayout="@layout/widget_preview_list"
android:description="@string/widget_list_description" />
diff --git a/android/app/src/main/res/xml/coucou_mood_widget_info.xml b/android/app/src/main/res/xml/coucou_mood_widget_info.xml
index eee44c41..1bf04e1e 100644
--- a/android/app/src/main/res/xml/coucou_mood_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_mood_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="40dp"
android:minHeight="40dp"
android:targetCellWidth="1"
@@ -8,4 +10,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_mood"
+ android:previewImage="@drawable/widget_preview_image_mood"
+ android:previewLayout="@layout/widget_preview_mood"
android:description="@string/widget_mood_description" />
diff --git a/android/app/src/main/res/xml/coucou_pill_widget_info.xml b/android/app/src/main/res/xml/coucou_pill_widget_info.xml
index 697fdd1a..57da77e1 100644
--- a/android/app/src/main/res/xml/coucou_pill_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_pill_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="250dp"
android:minHeight="40dp"
android:targetCellWidth="4"
@@ -10,4 +12,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_pill"
+ android:previewImage="@drawable/widget_preview_image_pill"
+ android:previewLayout="@layout/widget_preview_pill"
android:description="@string/widget_pill_description" />
diff --git a/android/app/src/main/res/xml/coucou_ring_widget_info.xml b/android/app/src/main/res/xml/coucou_ring_widget_info.xml
index 80be9fd5..d6c6d296 100644
--- a/android/app/src/main/res/xml/coucou_ring_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_ring_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="110dp"
android:minHeight="110dp"
android:targetCellWidth="2"
@@ -10,4 +12,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_ring"
+ android:previewImage="@drawable/widget_preview_image_ring"
+ android:previewLayout="@layout/widget_preview_ring"
android:description="@string/widget_ring_description" />
diff --git a/android/app/src/main/res/xml/coucou_solo_widget_info.xml b/android/app/src/main/res/xml/coucou_solo_widget_info.xml
index 5ad1e2b6..d427c32c 100644
--- a/android/app/src/main/res/xml/coucou_solo_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_solo_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="110dp"
android:minHeight="110dp"
android:targetCellWidth="2"
@@ -10,4 +12,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_solo"
+ android:previewImage="@drawable/widget_preview_image_solo"
+ android:previewLayout="@layout/widget_preview_solo"
android:description="@string/widget_solo_description" />
diff --git a/android/app/src/main/res/xml/coucou_today_widget_info.xml b/android/app/src/main/res/xml/coucou_today_widget_info.xml
index 44595e02..dfdb1937 100644
--- a/android/app/src/main/res/xml/coucou_today_widget_info.xml
+++ b/android/app/src/main/res/xml/coucou_today_widget_info.xml
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ tools:targetApi="31"
android:minWidth="110dp"
android:minHeight="110dp"
android:targetCellWidth="2"
@@ -10,4 +12,6 @@
android:updatePeriodMillis="0"
android:widgetCategory="home_screen"
android:initialLayout="@layout/widget_today"
+ android:previewImage="@drawable/widget_preview_image_today"
+ android:previewLayout="@layout/widget_preview_today"
android:description="@string/widget_today_description" />
diff --git a/android/i18n/app-strings.json b/android/i18n/app-strings.json
index 24ea2b41..26dc2120 100644
--- a/android/i18n/app-strings.json
+++ b/android/i18n/app-strings.json
@@ -34,6 +34,22 @@
"widget_ring_cd": "%1$s plan usage, %2$d percent used",
"widget_today_cd": "%1$d agent tasks finished today",
"widget_pill_cd": "%1$s, %2$s",
+ "widget_initial_title": "Coucou",
+ "widget_initial_line": "Waiting for your agents",
+ "widget_initial_count": "0",
+ "widget_sample_claude": "Claude Code",
+ "widget_sample_codex": "Codex",
+ "widget_sample_gemini": "Gemini CLI",
+ "widget_sample_approval": "Waiting for your approval",
+ "widget_sample_working": "Working",
+ "widget_sample_finished": "Finished",
+ "widget_sample_header": "Waiting for you",
+ "widget_sample_one": "1",
+ "widget_sample_two_waiting": "2 waiting",
+ "widget_sample_bubble": "Claude Code is working",
+ "widget_sample_ring_pct": "70%",
+ "widget_sample_ring_label": "Claude · 5 h",
+ "widget_sample_today": "5",
"status_connected": "Connected",
"status_connecting": "Connecting…",
"status_not_connected": "Not connected",