From 499775066571145cd212a838e224cf00bfdf0265 Mon Sep 17 00:00:00 2001
From: victor <victor.calleja.garcia@estudiantes.uva.es>
Date: Sun, 24 Nov 2024 16:15:17 +0100
Subject: [PATCH] Feature: Arreglar tienda

---
 .../main/res/layout/modal_detalles_compra.xml | 146 +++++++++---------
 1 file changed, 75 insertions(+), 71 deletions(-)

diff --git a/app/src/main/res/layout/modal_detalles_compra.xml b/app/src/main/res/layout/modal_detalles_compra.xml
index 5e8b34b..0d5037c 100644
--- a/app/src/main/res/layout/modal_detalles_compra.xml
+++ b/app/src/main/res/layout/modal_detalles_compra.xml
@@ -8,93 +8,97 @@
     tools:context=".exploradoresDePintia.ExploradoresDePintia"
     tools:ignore="HardcodedText, UseCompoundDrawables,ButtonStyle">
 
-    <LinearLayout
-        android:id="@+id/mainArea"
+    <ScrollView
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        android:gravity="center"
-        android:orientation="vertical"
+        android:fillViewport="true"
         app:layout_constraintEnd_toEndOf="parent"
         app:layout_constraintStart_toStartOf="parent"
         app:layout_constraintTop_toTopOf="parent">
 
-        <TextView
-            android:id="@+id/nombreObjeto"
-            android:layout_width="wrap_content"
+        <LinearLayout
+            android:id="@+id/mainArea"
+            android:layout_width="match_parent"
             android:layout_height="wrap_content"
-            android:layout_marginTop="10dp"
-            android:layout_marginBottom="10dp"
-            android:fontFamily="@font/pixeled"
-            android:shadowColor="#000000"
-            android:shadowDx="2"
-            android:shadowDy="2"
-            android:shadowRadius="4"
-            android:text="Nombre del Objeto"
-            android:textAlignment="center"
-            android:textColor="#6A0000"
-            android:textSize="24sp"
-            android:textStyle="bold" />
+            android:gravity="center"
+            android:orientation="vertical">
 
-        <View
-            android:layout_width="match_parent"
-            android:layout_height="1dp"
-            android:layout_marginBottom="10dp"
-            android:background="#000000" />
+            <TextView
+                android:id="@+id/nombreObjeto"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="10dp"
+                android:layout_marginBottom="10dp"
+                android:fontFamily="@font/pixeled"
+                android:shadowColor="#000000"
+                android:shadowDx="2"
+                android:shadowDy="2"
+                android:shadowRadius="4"
+                android:text="Nombre del Objeto"
+                android:textAlignment="center"
+                android:textColor="#6A0000"
+                android:textSize="24sp"
+                android:textStyle="bold" />
 
-        <androidx.cardview.widget.CardView
-            android:id="@+id/objetoSeleccionado"
-            android:layout_width="150dp"
-            android:layout_height="150dp"
-            android:layout_margin="5dp"
-            android:elevation="0dp"
-            app:cardCornerRadius="10dp">
+            <View
+                android:layout_width="match_parent"
+                android:layout_height="1dp"
+                android:layout_marginBottom="10dp"
+                android:background="#000000" />
 
-            <ImageView
-                android:id="@+id/imagenObjeto"
+            <androidx.cardview.widget.CardView
+                android:id="@+id/objetoSeleccionado"
                 android:layout_width="150dp"
                 android:layout_height="150dp"
-                android:contentDescription="Slot de equipo 1"
-                android:scaleType="centerCrop"
-                android:scaleX="-1"
-                android:src="@drawable/asi_objeto_casco"/>
-        </androidx.cardview.widget.CardView>
-
+                android:layout_margin="5dp"
+                android:elevation="0dp"
+                app:cardCornerRadius="10dp">
 
-        <TextView
-            android:id="@+id/textoDescripcion"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_marginTop="3dp"
-            android:fontFamily="@font/pixeled"
-            android:padding="8dp"
-            android:text="Descripción del objeto"
-            android:textAlignment="center"
-            android:textColor="#000000"
-            android:textSize="20sp" />
+                <ImageView
+                    android:id="@+id/imagenObjeto"
+                    android:layout_width="150dp"
+                    android:layout_height="150dp"
+                    android:contentDescription="Slot de equipo 1"
+                    android:scaleType="centerCrop"
+                    android:scaleX="-1"
+                    android:src="@drawable/asi_objeto_casco"/>
+            </androidx.cardview.widget.CardView>
 
-        <TextView
-            android:id="@+id/textoPrecio"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:fontFamily="@font/pixeled"
-            android:padding="8dp"
-            android:text="Coste: 12"
-            android:textAlignment="center"
-            android:textColor="#000000"
-            android:textSize="20sp" />
+            <TextView
+                android:id="@+id/textoDescripcion"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="3dp"
+                android:fontFamily="@font/pixeled"
+                android:padding="8dp"
+                android:text="Descripción del objeto"
+                android:textAlignment="center"
+                android:textColor="#000000"
+                android:textSize="20sp" />
 
-        <Button
-            android:id="@+id/botonComprar"
-            android:layout_width="135dp"
-            android:layout_height="wrap_content"
-            android:layout_marginTop="20dp"
-            android:backgroundTint="@color/pintiaButton"
-            android:fontFamily="@font/pixeled"
-            android:text="Comprar"
-            android:textColor="@color/pintiaButtonText"
-            android:textStyle="bold" />
+            <TextView
+                android:id="@+id/textoPrecio"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:fontFamily="@font/pixeled"
+                android:padding="8dp"
+                android:text="Coste: 12"
+                android:textAlignment="center"
+                android:textColor="#000000"
+                android:textSize="20sp" />
 
+            <Button
+                android:id="@+id/botonComprar"
+                android:layout_width="135dp"
+                android:layout_height="wrap_content"
+                android:layout_marginTop="20dp"
+                android:backgroundTint="@color/pintiaButton"
+                android:fontFamily="@font/pixeled"
+                android:text="Comprar"
+                android:textColor="@color/pintiaButtonText"
+                android:textStyle="bold" />
 
-    </LinearLayout>
+        </LinearLayout>
+    </ScrollView>
 
 </androidx.constraintlayout.widget.ConstraintLayout>
-- 
GitLab