diff --git a/app/src/main/res/drawable-nodpi/background_taberna.png b/app/src/main/res/drawable-nodpi/background_taberna.png new file mode 100644 index 0000000000000000000000000000000000000000..8490bf37f074919325520339a35d31e98505c194 Binary files /dev/null and b/app/src/main/res/drawable-nodpi/background_taberna.png differ diff --git a/app/src/main/res/drawable/style_confirmar_gradiente.xml b/app/src/main/res/drawable/style_confirmar_gradiente.xml new file mode 100644 index 0000000000000000000000000000000000000000..a440aca4abdcc804453ad31e3b0575184c01d574 --- /dev/null +++ b/app/src/main/res/drawable/style_confirmar_gradiente.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <gradient + android:angle="90" + android:startColor="#E1AA7A" + android:endColor="#ffb16c" + android:type="linear" /> + <corners android:radius="30dp"/> +</shape> diff --git a/app/src/main/res/layout/activity_taberna.xml b/app/src/main/res/layout/activity_taberna.xml new file mode 100644 index 0000000000000000000000000000000000000000..3908fb1317fbc5aa98f0f1653525338caf58f726 --- /dev/null +++ b/app/src/main/res/layout/activity_taberna.xml @@ -0,0 +1,142 @@ +<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_taberna" + 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_taberna" + android:text="Exploradores de Pintia" + android:textColor="#401201" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent"/> + + <TextView + android:id="@+id/nivelActual" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:padding="18dp" + android:text="Nivel Ciudad: 1" + android:textSize="30sp" + android:fontFamily="@font/pixeled" + android:layout_below="@id/tituloJuego" + android:background="@drawable/style_texto_border" + android:textColor="@color/pintiaTitleText" + android:textStyle="bold" + android:layout_centerHorizontal="true" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/tituloJuego"/> + + <TextView + android:id="@+id/textoNivelActual" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginEnd="20dp" + android:layout_marginStart="20dp" + android:textAlignment="center" + android:padding="18dp" + android:text="La taberna es el centro de reunión de los vacceos, un lugar donde la comunidad comparte historias, celebra y toma decisiones clave. Este edificio no solo refuerza los lazos sociales, sino que, al mejorarlo, aumenta el nivel de la villa y otorga ventajas estratégicas en el desarrollo del resto de los edificios." + android:textSize="16sp" + android:fontFamily="@font/pixeled" + android:layout_below="@id/tituloJuego" + android:background="@drawable/style_texto_border" + android:textColor="@color/pintiaTitleText" + android:textStyle="bold" + android:layout_marginTop="80dp" + android:layout_centerHorizontal="true" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/nivelActual"/> + + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/style_confirmar_gradiente" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + android:layout_marginBottom="45dp" + android:layout_marginTop="80dp" + app:layout_constraintBottom_toTopOf="@id/bottom_navigation" + > + <Button + android:id="@+id/botonMejorar" + android:layout_width="350dp" + android:layout_height="wrap_content" + android:padding="18dp" + android:text="Mejorar" + android:textColor="@color/pintiaTitleText" + android:textSize="30sp" + android:background="@android:color/transparent" + android:fontFamily="@font/pixeled" + android:textStyle="bold" + /> + </LinearLayout> + + + <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>