diff --git a/app/src/main/res/drawable/background_tienda.png b/app/src/main/res/drawable/background_tienda.png new file mode 100644 index 0000000000000000000000000000000000000000..94fc1be3349351b10df8f5518bafa66a53909417 Binary files /dev/null and b/app/src/main/res/drawable/background_tienda.png differ diff --git a/app/src/main/res/layout/activity_tienda.xml b/app/src/main/res/layout/activity_tienda.xml new file mode 100644 index 0000000000000000000000000000000000000000..e7d0f1a2335eeb8e69b3082a298f8559a0c8fb56 --- /dev/null +++ b/app/src/main/res/layout/activity_tienda.xml @@ -0,0 +1,352 @@ +<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/pintiaBackground" + tools:context=".exploradoresDePintia.ExploradoresDePintia" + tools:ignore="HardcodedText, UseCompoundDrawables"> + + <ImageView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:contentDescription="Taberna" + android:src="@drawable/background_tienda" + android:scaleType="centerCrop" /> + + <ImageView + android:id="@+id/tituloJuego" + android:layout_width="wrap_content" + android:layout_height="120dp" + android:layout_centerHorizontal="true" + android:contentDescription="Titulo del minijuego" + android:src="@drawable/texto_tienda" + android:textColor="#401201" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> + + <GridLayout + android:id="@+id/inventarioGrid" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="20dp" + android:layout_marginStart="5dp" + android:layout_marginEnd="5dp" + android:background="@drawable/style_texto_border" + android:columnCount="2" + android:padding="12dp" + android:rowCount="3" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/tituloJuego"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <androidx.cardview.widget.CardView + android:id="@+id/slot01" + android:layout_width="100dp" + android:layout_height="100dp" + android:elevation="0dp" + app:cardCornerRadius="10dp" + android:layout_marginEnd="15dp" + android:layout_marginStart="15dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:backgroundTint="#F2CDA0"> + + + <ImageView + android:layout_width="100dp" + android:layout_height="100dp" + android:contentDescription="Imagen que sobresale de Slot 1" + android:scaleType="centerCrop" + android:src="@drawable/asi_exploradores_jabonera" /> + + </androidx.cardview.widget.CardView> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal|bottom" + android:orientation="horizontal" + android:gravity="center" + android:layout_marginBottom="8dp"> + + <TextView + android:id="@+id/precio01" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="@font/pixeled" + android:text="100" + android:textColor="#401201" + android:textSize="20sp" /> + + <ImageView + android:id="@+id/iconMoneda" + android:layout_width="20dp" + android:layout_height="20dp" + android:layout_marginStart="4dp" + android:contentDescription="Icono de moneda" + android:src="@drawable/logo_pintia" + android:scaleType="centerCrop" /> + </LinearLayout> + + </LinearLayout> + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <androidx.cardview.widget.CardView + android:id="@+id/slot02" + android:layout_width="100dp" + android:layout_height="100dp" + android:elevation="0dp" + app:cardCornerRadius="10dp" + android:layout_marginEnd="15dp" + android:layout_marginStart="15dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:backgroundTint="#F2CDA0"> + + + <ImageView + android:layout_width="100dp" + android:layout_height="100dp" + android:contentDescription="Imagen que sobresale de Slot 1" + android:scaleType="centerCrop" + android:src="@drawable/asi_exploradores_jabonera" /> + + </androidx.cardview.widget.CardView> + + <TextView + android:id="@+id/precio02" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="@font/pixeled" + android:text="100" + android:layout_gravity="center_horizontal|bottom" + android:textColor="#401201" + android:textSize="20sp" /> + + </LinearLayout> + + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <androidx.cardview.widget.CardView + android:id="@+id/slot03" + android:layout_width="100dp" + android:layout_height="100dp" + android:elevation="0dp" + app:cardCornerRadius="10dp" + android:layout_marginEnd="15dp" + android:layout_marginStart="15dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:backgroundTint="#F2CDA0"> + + + <ImageView + android:layout_width="100dp" + android:layout_height="100dp" + android:contentDescription="Imagen que sobresale de Slot 1" + android:scaleType="centerCrop" + android:src="@drawable/asi_exploradores_jabonera" /> + + </androidx.cardview.widget.CardView> + + <TextView + android:id="@+id/precio03" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="@font/pixeled" + android:text="100" + android:layout_gravity="center_horizontal|bottom" + android:textColor="#401201" + android:textSize="20sp" /> + + </LinearLayout> + + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <androidx.cardview.widget.CardView + android:id="@+id/slot04" + android:layout_width="100dp" + android:layout_height="100dp" + android:elevation="0dp" + app:cardCornerRadius="10dp" + android:layout_marginEnd="15dp" + android:layout_marginStart="15dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:backgroundTint="#F2CDA0"> + + + <ImageView + android:layout_width="100dp" + android:layout_height="100dp" + android:contentDescription="Imagen que sobresale de Slot 1" + android:scaleType="centerCrop" + android:src="@drawable/asi_exploradores_jabonera" /> + + </androidx.cardview.widget.CardView> + + <TextView + android:id="@+id/precio04" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="@font/pixeled" + android:text="100" + android:layout_gravity="center_horizontal|bottom" + android:textColor="#401201" + android:textSize="20sp" /> + + </LinearLayout> + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <androidx.cardview.widget.CardView + android:id="@+id/slot05" + android:layout_width="100dp" + android:layout_height="100dp" + android:elevation="0dp" + app:cardCornerRadius="10dp" + android:layout_marginEnd="15dp" + android:layout_marginStart="15dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:backgroundTint="#F2CDA0"> + + + <ImageView + android:layout_width="100dp" + android:layout_height="100dp" + android:contentDescription="Imagen que sobresale de Slot 1" + android:scaleType="centerCrop" + android:src="@drawable/asi_exploradores_jabonera" /> + + </androidx.cardview.widget.CardView> + + <TextView + android:id="@+id/precio05" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="@font/pixeled" + android:text="100" + android:layout_gravity="center_horizontal|bottom" + android:textColor="#401201" + android:textSize="20sp" /> + + </LinearLayout> + + + <LinearLayout + android:orientation="vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_horizontal"> + + <androidx.cardview.widget.CardView + android:id="@+id/slot06" + android:layout_width="100dp" + android:layout_height="100dp" + android:elevation="0dp" + app:cardCornerRadius="10dp" + android:layout_marginEnd="15dp" + android:layout_marginStart="15dp" + android:layout_marginTop="15dp" + android:layout_marginBottom="5dp" + android:backgroundTint="#F2CDA0"> + + + <ImageView + android:layout_width="100dp" + android:layout_height="100dp" + android:contentDescription="Imagen que sobresale de Slot 1" + android:scaleType="centerCrop" + android:src="@drawable/asi_exploradores_jabonera" /> + + </androidx.cardview.widget.CardView> + + <TextView + android:id="@+id/precio06" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:fontFamily="@font/pixeled" + android:text="100" + android:layout_gravity="center_horizontal|bottom" + android:textColor="#401201" + android:textSize="20sp" /> + + </LinearLayout> + + </GridLayout> + + <LinearLayout + android:id="@+id/bottom_navigation" + style="?android:attr/buttonBarStyle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="@drawable/style_background_gradiente" + android:orientation="horizontal" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintBottom_toBottomOf="parent"> + + <ImageButton + android:id="@+id/leaderboardButton" + android:layout_width="0dp" + android:layout_height="60dp" + android:layout_weight="1" + android:background="?attr/selectableItemBackground" + android:src="@drawable/icon_leaderboard" + android:contentDescription="Abre el mapa" + android:padding="5dp" + android:scaleType="fitCenter" /> + + <ImageButton + android:id="@+id/mapButton" + android:layout_width="0dp" + android:layout_height="60dp" + android:layout_weight="1" + android:background="?attr/selectableItemBackground" + android:src="@drawable/icon_map" + android:contentDescription="Abre el ranking" + android:layout_marginEnd="40dp" + android:layout_marginStart="40dp" + android:scaleType="fitCenter" /> + + <ImageButton + android:id="@+id/shopButton" + android:layout_width="0dp" + android:layout_height="60dp" + android:layout_weight="1" + android:background="?attr/selectableItemBackground" + android:src="@drawable/icon_shop" + android:contentDescription="Abre la tienda" + android:padding="5dp" + android:scaleType="fitCenter" /> + </LinearLayout> + +</androidx.constraintlayout.widget.ConstraintLayout>