From 312123cf58300b44cd2bb1dfa317312e51347846 Mon Sep 17 00:00:00 2001 From: k3ssdev Date: Mon, 6 Nov 2023 01:58:19 +0100 Subject: [PATCH] update home fragment --- .../teamtrekandroid/ui/home/HomeFragment.java | 1 + app/src/main/res/layout/fragment_home.xml | 29 +++++++++++++------ app/src/main/res/values-land/strings.xml | 1 + app/src/main/res/values-night/strings.xml | 1 + app/src/main/res/values-w1240dp/strings.xml | 1 + app/src/main/res/values-w600dp/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 7 files changed, 26 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/io/github/k3ssdev/teamtrekandroid/ui/home/HomeFragment.java b/app/src/main/java/io/github/k3ssdev/teamtrekandroid/ui/home/HomeFragment.java index 1424424..3c2ab68 100644 --- a/app/src/main/java/io/github/k3ssdev/teamtrekandroid/ui/home/HomeFragment.java +++ b/app/src/main/java/io/github/k3ssdev/teamtrekandroid/ui/home/HomeFragment.java @@ -49,6 +49,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, Empleado empleado = empleadoResult.get(0); // Tomamos el primer resultado como ejemplo binding.nombreUsuario.setText(empleado.getNombre()); binding.departamentoUsuario.setText(empleado.getNombreDepartamento()); + binding.emailUsuario.setText(empleado.getEmail()); // Y así sucesivamente con el resto de datos del empleado... } }, sharedPreferences).execute(username); diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index bbfb681..ae70a9e 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -12,7 +12,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" - app:layout_constraintGuide_percent="0.05" /> + app:layout_constraintGuide_percent="0.03" /> + + + - + + + + - + app:layout_constraintTop_toBottomOf="@+id/departamentoUsuario" + app:layout_constraintVertical_bias="0.526" /> @@ -94,5 +105,5 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" - app:layout_constraintGuide_begin="127dp" /> + app:layout_constraintGuide_percent="0.16" /> diff --git a/app/src/main/res/values-land/strings.xml b/app/src/main/res/values-land/strings.xml index 19718fb..d9548a3 100644 --- a/app/src/main/res/values-land/strings.xml +++ b/app/src/main/res/values-land/strings.xml @@ -41,6 +41,7 @@ Añade el token de acceso Access Token Settings + email_del_usuario \ No newline at end of file diff --git a/app/src/main/res/values-night/strings.xml b/app/src/main/res/values-night/strings.xml index 19718fb..d9548a3 100644 --- a/app/src/main/res/values-night/strings.xml +++ b/app/src/main/res/values-night/strings.xml @@ -41,6 +41,7 @@ Añade el token de acceso Access Token Settings + email_del_usuario \ No newline at end of file diff --git a/app/src/main/res/values-w1240dp/strings.xml b/app/src/main/res/values-w1240dp/strings.xml index 19718fb..d9548a3 100644 --- a/app/src/main/res/values-w1240dp/strings.xml +++ b/app/src/main/res/values-w1240dp/strings.xml @@ -41,6 +41,7 @@ Añade el token de acceso Access Token Settings + email_del_usuario \ No newline at end of file diff --git a/app/src/main/res/values-w600dp/strings.xml b/app/src/main/res/values-w600dp/strings.xml index 19718fb..d9548a3 100644 --- a/app/src/main/res/values-w600dp/strings.xml +++ b/app/src/main/res/values-w600dp/strings.xml @@ -41,6 +41,7 @@ Añade el token de acceso Access Token Settings + email_del_usuario \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 19718fb..d9548a3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -41,6 +41,7 @@ Añade el token de acceso Access Token Settings + email_del_usuario \ No newline at end of file