add widget
Algunas comprobaciones han fallado
Build & Publish APK Release / build (push) Failing after 6m8s

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2026-03-01 00:02:40 +01:00
padre 95e8d167f2
commit 15f4d2eead
Se han modificado 20 ficheros con 895 adiciones y 2 borrados

Ver fichero

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/widget_root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@drawable/widget_background"
android:padding="16dp"
android:clickable="true">
<!-- Cabecera: icono + nombre de la app -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical"
android:layout_marginBottom="8dp">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="⭐ Motívame"
android:textColor="#FFFFFF"
android:textSize="12sp"
android:textStyle="bold"
android:alpha="0.8" />
<TextView
android:id="@+id/widget_status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="●"
android:textColor="#10B981"
android:textSize="10sp" />
</LinearLayout>
<!-- Título de la tarea -->
<TextView
android:id="@+id/widget_task_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Tarea"
android:textColor="#FFFFFF"
android:textSize="16sp"
android:textStyle="bold"
android:maxLines="1"
android:ellipsize="end"
android:layout_marginBottom="6dp" />
<!-- Meta aleatoria -->
<TextView
android:id="@+id/widget_goal"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:text="🎯 Meta"
android:textColor="#FFFFFF"
android:textSize="13sp"
android:alpha="0.85"
android:maxLines="2"
android:ellipsize="end" />
<!-- Pie: toca para abrir -->
<TextView
android:id="@+id/widget_hint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Toca para abrir →"
android:textColor="#FFFFFF"
android:textSize="10sp"
android:alpha="0.55"
android:gravity="end"
android:layout_marginTop="4dp" />
</LinearLayout>