From 5d7ed9b0a4417a1628f34dad90c228f8d55a0138 Mon Sep 17 00:00:00 2001
From: 230405 <230405@epvc.pt>
Date: Mon, 4 May 2026 14:56:56 +0100
Subject: [PATCH] tenho de ver se marca as coisas
---
app/src/main/res/layout/fragment_home.xml | 219 +++++++++++--------
app/src/main/res/layout/item_appointment.xml | 116 ++++++----
app/src/main/res/layout/item_medication.xml | 128 +++++++----
3 files changed, 293 insertions(+), 170 deletions(-)
diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 32132b9..3531da1 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -1,103 +1,148 @@
-
+ android:background="@color/background_color">
-
+
+
+
+
+
+ android:layout_marginStart="16dp"
+ android:layout_marginEnd="24dp"
+ android:text="Olá, utilizador!"
+ android:textColor="@color/white"
+ android:textSize="26sp"
+ android:textStyle="bold"
+ app:layout_constraintBottom_toBottomOf="@id/image_profile_home"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toEndOf="@id/image_profile_home"
+ app:layout_constraintTop_toTopOf="@id/image_profile_home" />
-
+
-
-
-
-
-
-
+ android:orientation="vertical"
+ android:paddingHorizontal="20dp">
-
+
+
+
+
-
-
+
+
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/item_appointment.xml b/app/src/main/res/layout/item_appointment.xml
index d18216e..18bf313 100644
--- a/app/src/main/res/layout/item_appointment.xml
+++ b/app/src/main/res/layout/item_appointment.xml
@@ -3,74 +3,114 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_marginVertical="8dp"
android:clickable="true"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"
- app:cardCornerRadius="16dp"
- app:cardElevation="4dp">
+ app:cardCornerRadius="20dp"
+ app:cardElevation="2dp"
+ app:strokeWidth="0dp"
+ app:cardBackgroundColor="@color/surface_color">
-
+ android:padding="20dp">
-
+
+
-
-
-
-
+ android:text="Tipo de Consulta"
+ android:textColor="@color/text_primary"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/text_status"
+ android:layout_marginEnd="8dp"/>
+
+
+ android:layout_marginTop="12dp"
+ android:gravity="center_vertical"
+ app:layout_constraintTop_toBottomOf="@id/text_type"
+ app:layout_constraintStart_toStartOf="parent">
+
+
+ android:textColor="@color/text_primary"
+ android:textSize="15sp"
+ android:textStyle="bold"/>
+
+
+ android:textColor="@color/text_primary"
+ android:textSize="15sp"
+ android:textStyle="bold"/>
-
+ android:layout_marginTop="12dp"
+ app:layout_constraintTop_toBottomOf="@id/time_layout"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"/>
+
+
diff --git a/app/src/main/res/layout/item_medication.xml b/app/src/main/res/layout/item_medication.xml
index d27aaa6..a1f8d4b 100644
--- a/app/src/main/res/layout/item_medication.xml
+++ b/app/src/main/res/layout/item_medication.xml
@@ -3,74 +3,112 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="8dp"
+ android:layout_marginVertical="8dp"
android:clickable="true"
android:focusable="true"
android:foreground="?android:attr/selectableItemBackground"
- app:cardCornerRadius="16dp"
- app:cardElevation="4dp">
+ app:cardCornerRadius="20dp"
+ app:cardElevation="2dp"
+ app:strokeWidth="0dp"
+ app:cardBackgroundColor="@color/surface_color">
-
+ android:padding="20dp">
-
+
+
+
+
-
+ android:text="Nome Medicamento"
+ android:textColor="@color/text_primary"
+ android:textSize="18sp"
+ android:textStyle="bold"
+ android:layout_marginStart="16dp"
+ app:layout_constraintTop_toTopOf="@id/icon_bg"
+ app:layout_constraintStart_toEndOf="@id/icon_bg"
+ app:layout_constraintEnd_toStartOf="@id/checkbox_taken"
+ android:layout_marginEnd="8dp"/>
-
+
-
-
-
+
+
+
+
+
+ android:textColor="@color/text_primary"
+ android:textSize="15sp"
+ android:textStyle="bold"/>
+ android:buttonTint="@color/primary_color"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
-
+